Share via


ForEachADOEnumerator.Type プロパティ

定義

列挙するオブジェクトの種類を示す値を取得します。値の設定も可能です。

public:
 property Microsoft::SqlServer::Dts::Runtime::Enumerators::ADO::ADOEnumerationType Type { Microsoft::SqlServer::Dts::Runtime::Enumerators::ADO::ADOEnumerationType get(); void set(Microsoft::SqlServer::Dts::Runtime::Enumerators::ADO::ADOEnumerationType value); };
public Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO.ADOEnumerationType Type { get; set; }
member this.Type : Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO.ADOEnumerationType with get, set
Public Property Type As ADOEnumerationType

プロパティ値

列挙の対象を示す ADOEnumerationType 列挙の値です。

実装

次のコード サンプルでは、Type プロパティを使用して、さまざまなビジネス ロジックを処理するコードを記述したり、ユーザー インターフェイスのチェック ボックスを切り替えたり、他の特別なプロセスを実行することにより、オブジェクトの種類を区別します。

m_Enum = (ForEachADOEnumerator)FEEHost.InnerObject;  
    if( m_Enum != null )  
    {  
        switch( m_Enum.Type )  
        {  
            case ADOEnumerationType.EnumerateAllRows:  
                // Insert custom code here.  
                break;  

            case ADOEnumerationType.EnumerateRowsInFirstTable:  
                // Insert custom code here.  
                break;  

            case ADOEnumerationType.EnumerateTables:  
                // Insert custom code here.  
                break;  

            default:  
                // Insert custom code here.  
                break;  
        }  

適用対象