ForEachFromVarEnumerator.VariableName 属性

定义

获取或设置要枚举的变量的名称。

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

属性值

一个字符串,其中包含要枚举的变量的名称。

实现

注解

用于变量枚举器的 Foreach 的变量必须为 Object 类型。 放入该变量中的对象必须实现以下接口之一:

  • System.Collections.IEnumerable

  • System.Runtime.InteropServices.ComTypes.IEnumVARIANT

  • System.ComponentModel IListSource

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

通常会使用 ArrayArrayList。 如果使用 a ArrayList,则需要引用 System.Collections 命名空间。

适用于