Gets a variable.

Namespace: SSIS.Test.Dts
Assembly: SSIS.Test (in SSIS.Test.dll) Version: 3.0.0.236 (3.0.0.236)

Syntax

C#
public DtsVariable GetVariable(
	string name
)
Visual Basic
Public Function GetVariable ( _
	name As String _
) As DtsVariable
Visual C++
public:
DtsVariable^ GetVariable(
	String^ name
)

Parameters

name
Type: System..::..String
Name of the variable to get. For example, User::CountOfProducts

Return Value

Instance of DtsVariable if found in the package, otherwise throws ArgumentException.

Exceptions

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

See Also