ForEachFromVarEnumerator.VariableName Proprietà

Definizione

Ottiene o imposta il nome della variabile da enumerare.

public:
 property System::String ^ VariableName { System::String ^ get(); void set(System::String ^ value); };
public string VariableName { get; set; }
member this.VariableName : string with get, set
Public Property VariableName As String

Valore della proprietà

Una stringa che contiene il nome della variabile da enumerare.

Implementazioni

Commenti

La variabile che usi con il Foreach dal Variable Enumerator deve essere di tipo Object. L'oggetto che inserisci nella variabile deve implementare una delle seguenti interfacce:

  • System.Collections.IEnumerable

  • System.Runtime.InteropServices.ComTypes.IEnumVARIANT

  • System.ComponentModel IListSource

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

Un Array o ArrayList è comunemente usato. Se usi un ArrayList, devi fare riferimento al System.Collections namespace.

Si applica a