다음을 통해 공유


AdomdCommand.ExecuteScalar 메서드

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

네임스페이스:  Microsoft.AnalysisServices.AdomdClient
어셈블리:  Microsoft.AnalysisServices.AdomdClient(Microsoft.AnalysisServices.AdomdClient.dll)

구문

‘선언
Public Function ExecuteScalar As Object
‘사용 방법
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

반환 값

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

구현

IDbCommand.ExecuteScalar()

예외

예외 조건
System.NotSupportedException

The member is called.

참고 항목

참조

AdomdCommand 클래스

Microsoft.AnalysisServices.AdomdClient 네임스페이스