Gets a variable.
Namespace: SSIS.Test.DtsAssembly: SSIS.Test (in SSIS.Test.dll) Version: 3.0.0.236 (3.0.0.236)
Syntax
C# |
---|
public DtsVariable GetVariableForPath( string path ) |
Visual Basic |
---|
Public Function GetVariableForPath ( _ path As String _ ) As DtsVariable |
Visual C++ |
---|
public: DtsVariable^ GetVariableForPath( String^ path ) |
Parameters
- path
- Type: System..::..String
Path to the variable. For example, \[Customer Package]\[Load Customers DataFlow].[User::CustomerCount]
Return Value
Instance of DtsVariable if found in the package, otherwise throws ArgumentException.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | If a variable for a given path is not present in the package, ArgumentException is thrown. |