ForEachFromVarEnumerator.VariableName 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置要枚举变量的名称。
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.IEnumerableSystem.Runtime.InteropServices.ComTypes.IEnumVARIANTSystem.ComponentModel IListSourceMicrosoft.SqlServer.Dts.Runtime.Wrapper.ForEachEnumeratorHost
通常使用“或”字母ArrayArrayList“。 如果你使用了 ArrayList,你需要引用命名 System.Collections 空间。