AdomdCommand.IDbCommand.ExecuteReader 方法 (CommandBehavior)
Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehaviour values.
命名空間: Microsoft.AnalysisServices.AdomdClient
組件: Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)
語法
'宣告
Private Function ExecuteReader ( _
behavior As CommandBehavior _
) As IDataReader Implements IDbCommand.ExecuteReader
'用途
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 支援明確介面實作的使用,但不支援新介面實作的宣告。
參數
- behavior
型別:System.Data.CommandBehavior
One of the enumeration values of CommandBehaviour.
傳回值
型別:System.Data.IDataReader
An IDataReader object.
實作
IDbCommand.ExecuteReader(CommandBehavior)