Metodo AdomdCommand.ExecuteReader

Runs the AdomdCommand and returns an AdomdDataReader.

Spazio dei nomi  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

Sintassi

'Dichiarazione
Public Function ExecuteReader As AdomdDataReader
'Utilizzo
Dim instance As AdomdCommand 
Dim returnValue As AdomdDataReader 

returnValue = instance.ExecuteReader()
public AdomdDataReader ExecuteReader()
public:
AdomdDataReader^ ExecuteReader()
member ExecuteReader : unit -> AdomdDataReader
public function ExecuteReader() : AdomdDataReader

Valore restituito

Tipo: Microsoft.AnalysisServices.AdomdClient.AdomdDataReader
The data reader.

Eccezioni

Eccezione Condizione
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

AdomdConnectionException

The connection was broken.

System.InvalidOperationException

An error occurred because one of the following conditions was met:

Osservazioni

While the AdomdDataReader is in use, the AdomdCommand and the associated AdomdConnection are busy serving the AdomdDataReader. While in this state, the AdomdConnection or AdomdCommand can only be closed; no other operations can be performed on them. This remains the case until the Close or Dispose method of the AdomdDataReader is called.

Vedere anche

Riferimento

AdomdCommand Classe

Overload ExecuteReader

Spazio dei nomi Microsoft.AnalysisServices.AdomdClient