AdomdCommand.ExecuteReader 메서드

Runs the AdomdCommand and returns an AdomdDataReader.

네임스페이스:  Microsoft.AnalysisServices.AdomdServer
어셈블리:  msmgdsrv(msmgdsrv.dll)

구문

‘선언
Public Function ExecuteReader As AdomdDataReader
‘사용 방법
Dim instance As AdomdCommand 
Dim returnValue As AdomdDataReader 

returnValue = instance.ExecuteReader()
public AdomdDataReader ExecuteReader()
public:
virtual AdomdDataReader^ ExecuteReader() sealed
abstract ExecuteReader : unit -> AdomdDataReader  
override ExecuteReader : unit -> AdomdDataReader
public final function ExecuteReader() : AdomdDataReader

반환 값

유형: Microsoft.AnalysisServices.AdomdServer.AdomdDataReader
A data reader.

예외

예외 조건
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

[T:System:InvalidOperationException]

The CommandText property was improperly set

주의

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.

참고 항목

참조

AdomdCommand 클래스

ExecuteReader 오버로드

Microsoft.AnalysisServices.AdomdServer 네임스페이스