Gets a connection.
Namespace: SSIS.Test.DtsAssembly: SSIS.Test (in SSIS.Test.dll) Version: 3.0.0.236 (3.0.0.236)
Syntax
| C# |
|---|
public DtsConnection GetConnection( string name ) |
| Visual Basic |
|---|
Public Function GetConnection ( _ name As String _ ) As DtsConnection |
| Visual C++ |
|---|
public: DtsConnection^ GetConnection( String^ name ) |
Parameters
- name
- Type: System..::..String
Name of the connection to get.
Return Value
Instance of DtsConnection if found in the package, otherwise throws ArgumentException.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | If a property with a given name is not present in the package, ArgumentException is thrown. |