Runs the AdomdCommand using the specified System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.
命名空間: Microsoft.AnalysisServices.AdomdClient
組件: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)
語法
'宣告
Public Function ExecuteReader ( _
behavior As CommandBehavior _
) As AdomdDataReader
public AdomdDataReader ExecuteReader (
CommandBehavior behavior
)
public:
AdomdDataReader^ ExecuteReader (
CommandBehavior behavior
)
public AdomdDataReader ExecuteReader (
CommandBehavior behavior
)
public function ExecuteReader (
behavior : CommandBehavior
) : AdomdDataReader
參數
- behavior
A System.Data.CommandBehaviorenumeration value that indicates the behavior of the AdomdCommand during or after the command runs.
傳回值
An AdomdDataReader.
備註
The values CommandBehavior.KeyInfo and CommandBehavior.SingleResult are not supported, and are ignored.
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
AdomdCommand Class
AdomdCommand Members
Microsoft.AnalysisServices.AdomdClient Namespace