Freigeben über


AdomdCommand.ExecuteCellSet Method

Runs the AdomdCommand and returns a CellSet.

Namespace: Microsoft.AnalysisServices.AdomdClient
Assembly : Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

Syntax

'Declaration
Public Function ExecuteCellSet As CellSet
public CellSet ExecuteCellSet ()
public:
CellSet^ ExecuteCellSet ()
public CellSet ExecuteCellSet ()
public function ExecuteCellSet () : CellSet

Rückgabewert

A CellSet.

Ausnahmen

Ausnahmetyp Bedingung
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

AdomdConnectionException

The connection was broken.

System.InvalidOperationException

An error occurred because one of the following conditions was met:

  • The return value was not a valid CellSet.

  • The connection was not set.

  • The connection was not opened.

  • Either the CommandText property or the CommandStream property was improperly set.

  • Both the CommandText property and the CommandStream property were set.

  • Neither the CommandText property, nor the CommandStream property, was set.

Hinweise

The ExecuteCellSet method tries to run the command that is contained by the AdomdCommand and returns a CellSet that contains the results of the command.

If the provider does not return a valid analytical data set, an exception is thrown.

Threadsicherheit

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

AdomdCommand Class
AdomdCommand Members
Microsoft.AnalysisServices.AdomdClient Namespace