Share via


ForEachFromVarEnumerator.VariableName Property

Gets or sets the name of the variable to enumerate.

Namespace: Microsoft.SqlServer.Dts.Runtime.Enumerators.FromVar
Assembly: Microsoft.SqlServer.ForEachFromVarEnumerator (in microsoft.sqlserver.foreachfromvarenumerator.dll)

Syntax

'Declaration
Public Property VariableName As String
public string VariableName { get; set; }
public:
virtual property String^ VariableName {
    String^ get () sealed;
    void set (String^ value) sealed;
}
/** @property */
public final String get_VariableName ()

/** @property */
public final void set_VariableName (String value)
public final function get VariableName () : String

public final function set VariableName (value : String)

Property Value

A String that contains the name of the variable to enumerate.

Remarks

New:14 April 2006

The variable that you use with the Foreach from Variable Enumerator must be of type Object. The object that you place in the variable must implement one of the following interfaces:

  • System.Collections.IEnumerable

  • System.Runtime.InteropServices.ComTypes.IEnumVARIANT

  • System.ComponentModel IListSource

  • Microsoft.SqlServer.Dts.Runtime.Wrapper.ForEachEnumeratorHost

An Array or ArrayList is commonly used. If you use an ArrayList, you need to reference the System.Collections namespace.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

ForEachFromVarEnumerator Class
ForEachFromVarEnumerator Members
Microsoft.SqlServer.Dts.Runtime.Enumerators.FromVar Namespace