Share via


AdomdCommand.ExecuteScalar Method

Executes the statement and returns the first object of the first column.

Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)

Syntax

'Declaration
Public Function ExecuteScalar As Object
'Usage
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

Return Value

Type: System.Object
The first object of the first column or nulla null reference (Nothing in Visual Basic) if no columns are found.

Implements

IDbCommand.ExecuteScalar()

See Also

Reference

AdomdCommand Class

Microsoft.AnalysisServices.AdomdServer Namespace