AdomdCommand.ExecuteScalar 方法
Executes the statement and returns the first object of the first column.
命名空間: Microsoft.AnalysisServices.AdomdServer
組件: msmgdsrv (在 msmgdsrv.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 object of the first column or nullnull 參考 (在 Visual Basic 中為 Nothing) if no columns are found.