Partilhar via


Método AdomdCommand.IDbCommand.ExecuteReader (CommandBehavior)

Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehaviour values.

Namespace:  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (em Microsoft.AnalysisServices.AdomdClient.dll)

Sintaxe

'Declaração
Private Function ExecuteReader ( _
    behavior As CommandBehavior _
) As IDataReader Implements IDbCommand.ExecuteReader
'Uso
Dim instance As AdomdCommand 
Dim behavior As CommandBehavior 
Dim returnValue As IDataReader 

returnValue = CType(instance, IDbCommand).ExecuteReader(behavior)
IDataReader IDbCommand.ExecuteReader(
    CommandBehavior behavior
)
private:
virtual IDataReader^ ExecuteReader(
    CommandBehavior behavior
) sealed = IDbCommand::ExecuteReader
private abstract ExecuteReader : 
        behavior:CommandBehavior -> IDataReader  
private override ExecuteReader : 
        behavior:CommandBehavior -> IDataReader
JScript dá suporte ao uso de implementações de interfaces explícitas, mas não a declarações de implementações novas.

Parâmetros

Valor de retorno

Tipo: System.Data.IDataReader
An IDataReader object.

Implementa

IDbCommand.ExecuteReader(CommandBehavior)

Consulte também

Referência

AdomdCommand Classe

Sobrecarregado ExecuteReader

Namespace Microsoft.AnalysisServices.AdomdClient