PipelineComponentInfos.GetEnumerator メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
PipelineComponentInfosコレクションの反復に使うための PipelineComponentInfoEnumerator 列挙子を返します。
public:
Microsoft::SqlServer::Dts::Runtime::PipelineComponentInfoEnumerator ^ GetEnumerator();
public Microsoft.SqlServer.Dts.Runtime.PipelineComponentInfoEnumerator GetEnumerator();
override this.GetEnumerator : unit -> Microsoft.SqlServer.Dts.Runtime.PipelineComponentInfoEnumerator
Public Function GetEnumerator () As PipelineComponentInfoEnumerator
返品
PipelineComponentInfoEnumerator調査員だ。
例
以下のコードサンプルは、PipelineComponentInfoEnumeratorメソッドを使ってGetEnumeratorを作成し、その後コレクションを反復します。
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;
//Create the Enumerator.
PipelineComponentInfoEnumerator myEnumerator = pInfos.GetEnumerator();
Console.WriteLine("The collection contains the following values:");
int i = 0;
while ((myEnuemrator.MoveNext()) && (myEnuemrator.Current != null))
Console.WriteLine("[{0}] {1}", i++, myEnuemrator.Current.Name);
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 pInfos As PipelineComponentInfos = app.PipelineComponentInfos
'Create the Enumerator.
Dim myEnumerator As PipelineComponentInfoEnumerator = pInfos.GetEnumerator()
Console.WriteLine("The collection contains the following values:")
Dim i As Integer = 0
While (myEnuemrator.MoveNext()) &&(myEnuemrator.Current <> Nothing)
Console.WriteLine("[{0}] {1}",i = Console.WriteLine("[{0}] {1}",i + 1
End While
Console.WriteLine()
End Sub
End Class
End Namespace
出力例:
コレクションには以下の値が含まれています:
[0] 合流
[1] マージ ジョイン
[2] 検索
[3] 監査
[4] ロウサンプリング
[5] 次元処理
[6] 用語抽出
[7] データマイニングモデルトレーニング
[8] OLE DBソース
[9] キャラクターマップ
[10] ファジーグルーピング