AdomdCommand.ExecuteScalar 方法

Executes the query, and returns the first column of the first row in the result set returned by the query.

命名空间:  Microsoft.AnalysisServices.AdomdClient
程序集:  Microsoft.AnalysisServices.AdomdClient(在 Microsoft.AnalysisServices.AdomdClient.dll 中)

语法

声明
Public Function ExecuteScalar As Object
用法
Dim instance As AdomdCommand 
Dim returnValue As Object 

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

返回值

类型:System.Object
The first column of the first row in the result set, or a null reference if the result set is empty.

实现

IDbCommand.ExecuteScalar()

异常

异常 条件
System.NotSupportedException

The member is called.

请参阅

参考

AdomdCommand 类

Microsoft.AnalysisServices.AdomdClient 命名空间