Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

AdomdCommand Class

Represents a command to be run against an analytical data source.


Namespace:  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

public sealed class AdomdCommand : Component, 
	IDbCommand, IDisposable, ICloneable

The AdomdCommand type exposes the following members.

Public methodAdomdCommand()Initializes a new instance of the AdomdCommand class with default values.
Public methodAdomdCommand(String)Initializes a new instance of the AdomdCommand class with the text of the command.
Public methodAdomdCommand(String, AdomdConnection)Initializes a new instance of the AdomdCommand class with the text of the command and an AdomdConnection.

Public propertyActivityIDGets or sets the identifier of the activity associated with the command.
Public propertyCommandStreamGets or sets the command to run, using a Stream.
Public propertyCommandTextGets or sets the command to run.
Public propertyCommandTimeoutGets or sets the time to wait for a command to run before the AdomdCommand stops trying to run the command and generates an error.
Public propertyCommandTypeGets or sets the CommandType used by the AdomdCommand.
Public propertyConnectionGets or sets the AdomdConnection that the AdomdCommand uses.
Public propertyContainer (Inherited from Component.)
Public propertyParametersGets an instance of an AdomdParameterCollection class that contains the parameters used when running the AdomdCommand.
Public propertyPropertiesGets an instance of an AdomdPropertyCollection class that contains the properties associated with the AdomdCommand.
Public propertySite (Inherited from Component.)
Public propertyUpdatedRowSourceThis member is reserved for future use.

Public methodCancelTries to cancel the execution of the AdomdCommand.
Public methodCloneCreates and returns a new object that is a copy of the current AdomdCommand instance.
Public methodCreateObjRefSecurity Critical. (Inherited from MarshalByRefObject.)
Public methodCreateParameterReturns a newly created AdomdParameter.
Public methodDispose (Inherited from Component.)
Public methodEquals (Inherited from Object.)
Public methodExecuteRuns the AdomdCommand, and returns either a CellSet or an AdomdDataReader.
Public methodExecuteCellSetRuns the AdomdCommand and returns a CellSet.
Public methodExecuteNonQueryRuns the AdomdCommand without returning any results.
Public methodExecuteReader()Runs the AdomdCommand and returns an AdomdDataReader.
Public methodExecuteReader(CommandBehavior)Runs the AdomdCommand using the specified CommandBehaviorenumeration value and returns an AdomdDataReader.
Public methodExecuteScalarExecutes the query, and returns the first column of the first row in the result set returned by the query.
Public methodExecuteXmlReaderRuns the AdomdCommand and returns an XmlReader.
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeServiceSecurity Critical. (Inherited from MarshalByRefObject.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeServiceSecurity Critical. (Inherited from MarshalByRefObject.)
Public methodPrepareVerifies that the AdomdCommand can run.
Public methodToString (Inherited from Component.)

Public eventDisposed (Inherited from Component.)

Explicit interface implemetationPrivate methodICloneable.CloneCreates a new object that is a copy of the current instance.
Explicit interface implemetationPrivate propertyIDbCommand.ConnectionGets or sets the AdomdConnection used by this instance of the AdomdCommand.
Explicit interface implemetationPrivate methodIDbCommand.CreateParameterCreates a new instance of an IDbDataParameter object.
Explicit interface implemetationPrivate methodIDbCommand.ExecuteReader()Executes the CommandText against the Connection, and builds an IDataReader.
Explicit interface implemetationPrivate methodIDbCommand.ExecuteReader(CommandBehavior)Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehaviour values.
Explicit interface implemetationPrivate propertyIDbCommand.ParametersGets the IDataParameterCollection.
Explicit interface implemetationPrivate propertyIDbCommand.TransactionGets or sets the transaction within which the command object runs.

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

Community Additions

© 2015 Microsoft