다음을 통해 공유


ForEachEnumeratorInfos.Item Property

Returns a ForEachEnumeratorInfo object from the collection.

네임스페이스: Microsoft.SqlServer.Dts.Runtime
어셈블리: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

구문

‘선언
Public ReadOnly Default Property Item ( _
    index As Object _
) As ForEachEnumeratorInfo
public ForEachEnumeratorInfo this [
    Object index
] { get; }
public:
property ForEachEnumeratorInfo^ default [Object^] {
    ForEachEnumeratorInfo^ get (Object^ index);
}
/** @property */
public ForEachEnumeratorInfo get_Item (Object index)

매개 변수

  • index
    The name, ID, or index of the object to return from the collection.

속성 값

A ForEachEnumeratorInfo object.

The following code example retrieves an item from the collection by index and name, using the feInfos[0] syntax.

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;

            //Using the Item method syntax of [x], obtain the 
            //description of the first entry.
            ForEachEnumeratorInfo feInfo = feInfos[0];
            String nameOfFirstItem = feInfos[0].Name;
            Console.WriteLine("Description of ForEach entry: {0}", nameOfFirstItem);

            //Using the Item method syntax of [x], obtain the ID
            // of the entry with the name, For Each Item Enumerator.
            feInfo = feInfos["For Each Item Enumerator"];
            String IDOfItem = feInfos["For Each Item Enumerator"].ID;
            Console.WriteLine("ID of ForEach entry: {0}", IDOfItem);
        }
    }
}

Sample Output:

Description of ForEach entry: For Each File Enumerator

ID of ForEach entry: {62C3D0DC-C6A3-4A08-84F3-6028B2452F41}

스레드 보안

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.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

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