Variables::GetEnumerator Method ()


Returns a VariableEnumerator enumerator for use in iterating over the Variables collection.

Namespace:   Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

VariableEnumerator^ GetEnumerator()

The following code example adds a variable to the package. The code example uses various methods to locate the variable and print its name, value, and namespace.

No code example is currently available or this language may not be supported.

Sample Output:

The variable was found? True

Variable: myCustomVar, 3


[0] myCustomVar, User


The name and namespace of the first variable is: CancelEvent, System

The name of the first variable is: CancelEvent

Return to top