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 命名空间