Sets connection strings to connections in the package.
Namespace: SSIS.Test.DtsAssembly: SSIS.Test (in SSIS.Test.dll) Version: 3.0.0.236 (3.0.0.236)
Syntax
| C# |
|---|
public void SetConnectionStrings( IEnumerable<KeyValuePair<string, string>> nameValuePairs ) |
| Visual Basic |
|---|
Public Sub SetConnectionStrings ( _ nameValuePairs As IEnumerable(Of KeyValuePair(Of String, String)) _ ) |
| Visual C++ |
|---|
public: void SetConnectionStrings( IEnumerable<KeyValuePair<String^, String^>>^ nameValuePairs ) |
Parameters
- nameValuePairs
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'KeyValuePair<(Of <(<'String, String>)>)>>)>)>
List of name-value pairs where name is a connection name and value is a connection string.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | If a connection is not present in the package, ArgumentException is thrown. |