Метод 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.
Реализует
Исключения
Исключение | Условие |
---|---|
System.NotSupportedException | The member is called. |