共用方式為


BusinessLogicCommand.ExecuteScalar 方法

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

命名空間:  Microsoft.SqlServer.Replication.BusinessLogicSupport
組件:  Microsoft.SqlServer.Replication.BusinessLogicSupport (在 Microsoft.SqlServer.Replication.BusinessLogicSupport.dll 中)

語法

'宣告
Public Function ExecuteScalar As Object
'用途
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

傳回值

型別:System.Object
The first column of the first row in the result set.

實作

IDbCommand.ExecuteScalar()

請參閱

參考

BusinessLogicCommand 類別

Microsoft.SqlServer.Replication.BusinessLogicSupport 命名空間