ForEachADOEnumerator.Type プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
列挙するオブジェクトの種類を示す値を取得します。値の設定も可能です。
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;
}