Gets a connection.

Namespace: SSIS.Test.Dts
Assembly: 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

ExceptionCondition
System..::..ArgumentExceptionIf a property with a given name is not present in the package, ArgumentException is thrown.

See Also