Application.ForEachEnumeratorInfos 属性

定义

返回包含 ForEachEnumeratorInfos 对象的 ForEachEnumeratorInfo 集合。 此属性为只读。

public:
 property Microsoft::SqlServer::Dts::Runtime::ForEachEnumeratorInfos ^ ForEachEnumeratorInfos { Microsoft::SqlServer::Dts::Runtime::ForEachEnumeratorInfos ^ get(); };
public Microsoft.SqlServer.Dts.Runtime.ForEachEnumeratorInfos ForEachEnumeratorInfos { get; }
member this.ForEachEnumeratorInfos : Microsoft.SqlServer.Dts.Runtime.ForEachEnumeratorInfos
Public ReadOnly Property ForEachEnumeratorInfos As ForEachEnumeratorInfos

属性值

返回包含应用程序中的所有 ForEachEnumeratorInfos 对象的 ForEachEnumeratorInfo 集合。

示例

下面的代码示例演示如何枚举 Integration Services 提供的不同 ForEach 枚举器。

class ApplicationTests
    {
        static void Main(string[] args)
        {
            Application app = new Application();
            ForEachEnumeratorInfos fee = app.ForEachEnumeratorInfos;
            foreach(ForEachEnumeratorInfo x in fee)
                Console.WriteLine(x.ID);
        }
    }
class ApplicationTests
    Sub Main(ByVal args() As String)
        Dim app As Application =  New Application() 
        Dim fee As ForEachEnumeratorInfos =  app.ForEachEnumeratorInfos 
        For Each x As ForEachEnumeratorInfo In fee
            Console.WriteLine(x.ID)
        Next
    End Sub
End Class

示例输出:

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

Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO.ForEachADOEnumerator,

Microsoft.SqlServer.ForEachADOEnumerator, Version=10.0.0.0, Culture=neutral,

PublicKeyToken=89845dcd8080cc91

Microsoft.SqlServer.Dts.Runtime.Enumerators.FromVar.ForEachFromVarEnumerator,

Microsoft.SqlServer.ForEachFromVarEnumerator, Version=10.0.0.0, Culture=neutral,

PublicKeyToken=89845dcd8080cc91

Microsoft.SqlServer.Dts.Runtime.Enumerators.NodeList.ForEachNodeListEnumerator,

Microsoft.SqlServer.ForEachNodeListEnumerator, Version=10.0.0.0, Culture=neutral,

PublicKeyToken=89845dcd8080cc91

Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO.ForEachSMOEnumerator,

Microsoft.SqlServer.ForEachSMOEnumerator, Version=10.0.0.0, Culture=neutral,

PublicKeyToken=89845dcd8080cc91

适用于