Freigeben über


AdomdCommand.ExecuteScalar-Methode

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

Rückgabewert

Typ: System.Object
The first object of the first column or nullein NULL-Verweis (Nothing in Visual Basic) if no columns are found.

Implementiert

IDbCommand.ExecuteScalar()

Siehe auch

Verweis

AdomdCommand Klasse

Microsoft.AnalysisServices.AdomdServer-Namespace