Compartilhar via


Método BusinessLogicCommand.ExecuteScalar

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

Namespace:  Microsoft.SqlServer.Replication.BusinessLogicSupport
Assembly:  Microsoft.SqlServer.Replication.BusinessLogicSupport (em Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)

Sintaxe

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

Implementa

IDbCommand.ExecuteScalar()

Consulte também

Referência

BusinessLogicCommand Classe

Namespace Microsoft.SqlServer.Replication.BusinessLogicSupport