Compartir a través de


ForEachEnumeratorInfo.ID Property

Returns the GUID assigned to the ForEachEnumerator. This value is read-only.

Espacio de nombres: Microsoft.SqlServer.Dts.Runtime
Ensamblado: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Sintaxis

'Declaración
Public ReadOnly Property ID As String
public string ID { get; }
public:
virtual property String^ ID {
    String^ get () sealed;
}
/** @property */
public final String get_ID ()
public final function get ID () : String

Valor de propiedad

A String that contains the GUID assigned to the ForEachEnumerator.

Ejemplo

The following code example retrieves each ForEachEnumeratorInfo from the ForEachEnumeratorInfos collection, and then prints the values for each property, including the ID.

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

Sample Output:

CreationName: DTS.ForEachFileEnumerator.1

Description Provides a file system enumerator

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

FileNameVersionString 2000.90.1049.0

ForEachEnumeratorContact

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

Name For Each File Enumerator

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

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

CreationName: DTS.ForEachItemEnumerator.1

Description Enumerates items in a collection of items

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

FileNameVersionString 2000.90.1049.0

ForEachEnumeratorContact

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

Name For Each Item Enumerator

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

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

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

ForEachEnumeratorInfo Class
ForEachEnumeratorInfo Members
Microsoft.SqlServer.Dts.Runtime Namespace