共用方式為


AdomdCommand.ExecuteReader 方法 (CommandBehavior)

Runs the AdomdCommand using the specified System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.

命名空間:  Microsoft.AnalysisServices.AdomdClient
組件:  Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)

語法

'宣告
Public Function ExecuteReader ( _
    behavior As CommandBehavior _
) As AdomdDataReader
'用途
Dim instance As AdomdCommand 
Dim behavior As CommandBehavior 
Dim returnValue As AdomdDataReader 

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

參數

傳回值

型別:Microsoft.AnalysisServices.AdomdClient.AdomdDataReader
The data reader.

備註

The values CommandBehavior.KeyInfo and CommandBehavior.SingleResult are not supported, and are ignored.

請參閱

參考

AdomdCommand 類別

ExecuteReader 多載

Microsoft.AnalysisServices.AdomdClient 命名空間