다음을 통해 공유


ForEachEnumeratorInfo.Name 속성

정의

ForEachEnumerator에 할당된 GUID를 가져오거나 설정합니다.

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

속성 값

에 할당된 GUID를 포함하는 문자열입니다 ForEachEnumerator.

구현

예제

다음 코드 예제에서는 컬렉션에서 각각 ForEachEnumeratorInfoForEachEnumeratorInfos 검색 하 고 각 속성 Name에 대 한 값을 인쇄 합니다.

using System;  
using System.Collections.Generic;  
using System.Text;  
using Microsoft.SqlServer.Dts.Runtime;  

namespace TaskInfos_Item  
{  
    class Program  
    {  
        static void Main(string[] args)  
        {  
            Application app = new Application();  
            ForEachEnumeratorInfos feInfos = app.ForEachEnumeratorInfos;  

            // Iterate through the collection,   
            // printing values for the properties.  
            foreach (ForEachEnumeratorInfo feInfo in feInfos)  
            {  
                Console.WriteLine("CreationName:   {0}", feInfo.CreationName);  
                Console.WriteLine("Description     {0}", feInfo.Description);  
                Console.WriteLine("FileName        {0}", feInfo.FileName);  
                //Console.WriteLine("FileNameVersionString   {0}", feInfo.FileNameVersionString);  
                Console.WriteLine("ForEachEnumeratorContact {0}", feInfo.ForEachEnumeratorContact);  
                Console.WriteLine("ID              {0}", feInfo.ID);  
                Console.WriteLine("Name            {0}", feInfo.Name);  
                Console.WriteLine("UITypeName      {0}", feInfo.UITypeName);  
                Console.WriteLine("----------------------------");  
            }  
        }  
    }  
}  
Imports System  
Imports System.Collections.Generic  
Imports System.Text  
Imports Microsoft.SqlServer.Dts.Runtime  

Namespace TaskInfos_Item  
    Class Program  
        Shared  Sub Main(ByVal args() As String)  
            Dim app As Application =  New Application()   
            Dim feInfos As ForEachEnumeratorInfos =  app.ForEachEnumeratorInfos   

            ' Iterate through the collection,   
            ' printing values for the properties.  
            Dim feInfo As ForEachEnumeratorInfo  
            For Each feInfo In feInfos  
                Console.WriteLine("CreationName:   {0}", feInfo.CreationName)  
                Console.WriteLine("Description     {0}", feInfo.Description)  
                Console.WriteLine("FileName        {0}", feInfo.FileName)  
                'Console.WriteLine("FileNameVersionString   {0}", feInfo.FileNameVersionString)  
                Console.WriteLine("ForEachEnumeratorContact {0}", feInfo.ForEachEnumeratorContact)  
                Console.WriteLine("ID              {0}", feInfo.ID)  
                Console.WriteLine("Name            {0}", feInfo.Name)  
                Console.WriteLine("UITypeName      {0}", feInfo.UITypeName)  
                Console.WriteLine("----------------------------")  
            Next  
        End Sub  
    End Class  
End Namespace  

샘플 출력:

CreationName: DTS.ForEachFileEnumerator.1

Description Provides a file system enumerator

FileName C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\ForEachFileEnumerator.dll

ForEachEnumeratorContact

ID {62C3D0D9-C6A3-4A08-84F3-6028B2452F41}

Name For Each File Enumerator

UITypeName Microsoft.SqlServer.Dts.Runtime.Enumerators.File.ForEachFileEnumeratorUI, Microsoft.SqlServer.ForEachFileEnumeratorUI, Version=10.0.000.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91

----------------------------

CreationName: DTS.ForEachItemEnumerator.1

Description Enumerates items in a collection of items

FileName C:\Program Files\Microsoft SQL Server\100\DTS\Binn\DTS.dll

ForEachEnumeratorContact

ID {62C3D0DC-C6A3-4A08-84F3-6028B2452F41}

Name For Each Item Enumerator

UITypeName Microsoft.SqlServer.Dts.Runtime.Enumerators.Item.ForEachItemEnumUI, Microsoft.SqlServer.ForEachItemEnumeratorUI, Version=10.0.000.0, Culture=Neutral, PublicKeyToken=89845dcd8080cc91

----------------------------

설명

이 속성은 ID 속성으로 표시 됩니다. 에 대 한 ForEachEnumerator속성 대화 상자에 표시 됩니다.

적용 대상