共用方式為


ExecuteScalar 方法

This member is reserved for future use.

命名空間:  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

實作

IDbCommand. . :: . .ExecuteScalar() () () ()

例外狀況

例外狀況 條件
System..::..NotSupportedException

The member is called.