다음을 통해 공유


ForEachADOEnumerator.Type 속성

Gets or sets a value that indicates what type of object to enumerate over.

네임스페이스:  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
A value from the ADOEnumerationType enumeration that indicates what to enumerate over.

구현

IDTSForEachADOEnumerator.Type

The following code sample shows how to use the Type property to differentiate the type of object, allowing different code to be written for handling different business logic, toggling check boxes in a user interface, or running any other special processes.

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;
        }

참고 항목

참조

ForEachADOEnumerator 클래스

Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO 네임스페이스