ForEachEnumeratorInfos.Item Özelliği
Döndürür bir ForEachEnumeratorInfo gelen nesne koleksiyon.
Ad Alanı: Microsoft.SqlServer.Dts.Runtime
Derleme: Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)
Sözdizimi
'Bildirim
Public ReadOnly Default Property Item ( _
index As Object _
) As ForEachEnumeratorInfo
Get
'Kullanım
Dim instance As ForEachEnumeratorInfos
Dim index As Object
Dim value As ForEachEnumeratorInfo
value = instance(index)
public ForEachEnumeratorInfo this[
Object index
] { get; }
public:
property ForEachEnumeratorInfo^ default[Object^ index] {
ForEachEnumeratorInfo^ get (Object^ index);
}
member Item : ForEachEnumeratorInfo
JScript, dizinli özelliklerin kullanılmasını destekler, ancak yenilerinin bildirilmesini desteklemez.
Parametreler
- index
Tür: System.Object
Adı, kimlik veya nesnenin dizin dan dönmek için koleksiyon.
Özellik Değeri
Tür: Microsoft.SqlServer.Dts.Runtime.ForEachEnumeratorInfo
A ForEachEnumeratorInfo nesne.
Örnekler
Aşağıdaki kod örneği, öğe alır koleksiyon dizin ve adını kullanarak feInfos[0] sözdizimi.
Not
İngilizce dışında başka bir yerel ayar aşağıdaki kod örneği kullanmak için yerelleştirilmiş numaralayıcı adına "İçin her madde Enumerator", dize değiştirin.
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);
}
}
}
Örnek Çıktı:
ForEach girişinin açıklaması: Her dosya numaralayıcı için
Kimliği, ForEach girdisi: 62C3D0DC-C6A3-4A08-84F3-6028B2452F41