Type プロパティ

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

名前空間:  Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO
アセンブリ:  Microsoft.SqlServer.ForEachADOEnumerator (Microsoft.SqlServer.ForEachADOEnumerator.dll)

構文

'宣言
Public Property Type As ADOEnumerationType
    Get
    Set
'使用
Dim instance As ForEachADOEnumerator
Dim value As ADOEnumerationType

value = instance.Type

instance.Type = value
public ADOEnumerationType Type { get; set; }
public:
virtual property ADOEnumerationType Type {
    ADOEnumerationType get () sealed;
    void set (ADOEnumerationType value) sealed;
}
abstract Type : ADOEnumerationType with get, set
override Type : ADOEnumerationType with get, set
final function get Type () : ADOEnumerationType
final function set Type (value : ADOEnumerationType)

プロパティ値

型: Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO. . :: . .ADOEnumerationType
列挙の対象を示す ADOEnumerationType 列挙の値です。

実装

IDTSForEachADOEnumerator. . :: . .Type

使用例

次のコード サンプルでは、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;
        }