언어

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

일반적으로 또는 ArrayList 또는 문자 Array 가 사용됩니다. 만약 를 ArrayList사용한다면, 네임스페이스를 System.Collections 참조해야 합니다.

적용 대상