Compartilhar via


Método AdomdCommand.ExecuteScalar

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

Namespace:  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (em Microsoft.AnalysisServices.AdomdClient.dll)

Sintaxe

'Declaração
Public Function ExecuteScalar As Object
'Uso
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

Valor de retorno

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

Implementa

IDbCommand.ExecuteScalar()

Exceções

Exceção Condição
System.NotSupportedException

The member is called.

Consulte também

Referência

AdomdCommand Classe

Namespace Microsoft.AnalysisServices.AdomdClient