ForEachADOEnumerator.Type Property

Definition

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

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

Property Value

A value from the ADOEnumerationType enumeration that indicates what to enumerate over.

Implements

Examples

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

Applies to