다음을 통해 공유


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

적용 대상