Condividi tramite


ForEachADOEnumerator.Type Proprietà

Definizione

Ottiene o imposta un valore che indica il tipo di oggetto su cui eseguire l'enumerazione.

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

Valore della proprietà

Valore dell'enumerazione ADOEnumerationType che indica l'oggetto su cui eseguire l'enumerazione.

Implementazioni

Esempio

Nell'esempio di codice seguente viene illustrato come usare la Type proprietà per differenziare il tipo di oggetto, consentendo la scrittura di codice diverso per la gestione di logica di business diversa, l'attivazione/disattivazione delle caselle di controllo in un'interfaccia utente o l'esecuzione di altri processi speciali.

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

Si applica a