Aracılığıyla paylaş


PipelineComponentInfos.Item Özelliği

Döndürür bir PipelineComponentInfo 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 PipelineComponentInfo
    Get
'Kullanım
Dim instance As PipelineComponentInfos
Dim index As Object
Dim value As PipelineComponentInfo

value = instance(index)
public PipelineComponentInfo this[
    Object index
] { get; }
public:
property PipelineComponentInfo^ default[Object^ index] {
    PipelineComponentInfo^ get (Object^ index);
}
member Item : PipelineComponentInfo
JScript, dizinli özelliklerin kullanılmasını destekler, ancak yenilerinin bildirilmesini desteklemez.

Parametreler

  • index
    Tür: System.Object
    Adı, kimliği, açıklama veya dizini öğe koleksiyonda bulmak için.

Açıklamalar

Çağrı Contains yöntem döndürür doğru, belirtilen öğe erişebilirsiniz koleksiyon sözdizimini kullanarak PipelineComponentInfos[index].Ancak, Contains yöntem döndürür yanlış, bu özellik bir istisna atar.C# ile dizinleyici için bu özellik olan PipelineComponentInfos sınıfı

Örnekler

Aşağıdaki kod örneği, öğe alır koleksiyon iki yöntemi kullanarak.İlk yöntem kullanır pInfos[…] tüm nesneyi almak için sözdizimi ilk konumda bulunan koleksiyon içine yerleştirin ve pInfo nesne.Şimdi tüm özelliklerini al pInfo her zamanki gibi nesne.İkinci yöntem, belirli bir özellik, "birleştirme" nden açıklama almak gösterilmiştir Nesne, koleksiyon adı dizinleyici kullanarak.

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();
            PipelineComponentInfos pInfos = app.PipelineComponentInfos;

            //Using the Item method syntax of [x], obtain the description
            // of the Merge entry.
            PipelineComponentInfo pInfo = pInfos["Merge"];
            String nameOfFirstItem = pInfos["Merge"].Description;
            Console.WriteLine("Description of Merge entry: {0}", nameOfFirstItem);
        }
    }
}
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 pInfos As PipelineComponentInfos =  app.PipelineComponentInfos 
 
            'Using the Item method syntax of [x], obtain the description
            ' of the Merge entry.
            Dim pInfo As PipelineComponentInfo =  pInfos("Merge") 
            Dim nameOfFirstItem As String =  pInfos("Merge").Description 
            Console.WriteLine("Description of Merge entry: {0}", nameOfFirstItem)
        End Sub
    End Class
End Namespace

Örnek Çıktı:

Birleştirme giriş açıklaması: Dönüşümü Birleştir