AdomdCommand Class

 

Updated: March 10, 2016

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

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

System.Object
  System.MarshalByRefObject
    System.ComponentModel.Component
      Microsoft.AnalysisServices.AdomdClient.AdomdCommand

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

NameDescription
System_CAPS_pubmethodAdomdCommand()

Initializes a new instance of the AdomdCommand class with default values.

System_CAPS_pubmethodAdomdCommand(String)

Initializes a new instance of the AdomdCommand class with the text of the command.

System_CAPS_pubmethodAdomdCommand(String, AdomdConnection)

Initializes a new instance of the AdomdCommand class with the text of the command and an AdomdConnection.

NameDescription
System_CAPS_pubpropertyActivityID

Gets or sets the identifier of the activity associated with the command.

System_CAPS_pubpropertyCommandStream

Gets or sets the command to run, using a System.IO.Stream.

System_CAPS_pubpropertyCommandText

Gets or sets the command to run.

System_CAPS_pubpropertyCommandTimeout

Gets or sets the time to wait for a command to run before the AdomdCommand stops trying to run the command and generates an error.

System_CAPS_pubpropertyCommandType

Gets or sets the System.Data.CommandType used by the AdomdCommand.

System_CAPS_pubpropertyConnection

Gets or sets the AdomdConnection that the AdomdCommand uses.

System_CAPS_pubpropertyContainer

(Inherited from Component.)

System_CAPS_pubpropertyParameters

Gets an instance of an AdomdParameterCollection class that contains the parameters used when running the AdomdCommand.

System_CAPS_pubpropertyProperties

Gets an instance of an AdomdPropertyCollection class that contains the properties associated with the AdomdCommand.

System_CAPS_pubpropertySite

(Inherited from Component.)

System_CAPS_pubpropertyUpdatedRowSource

This member is reserved for future use.

NameDescription
System_CAPS_pubmethodCancel()

Tries to cancel the execution of the AdomdCommand.

System_CAPS_pubmethodClone()

Creates and returns a new object that is a copy of the current AdomdCommand instance.

System_CAPS_pubmethodCreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodCreateParameter()

Returns a newly created AdomdParameter.

System_CAPS_pubmethodDispose()

(Inherited from Component.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecute()

Runs the AdomdCommand, and returns either a CellSet or an AdomdDataReader.

System_CAPS_pubmethodExecuteCellSet()

Runs the AdomdCommand and returns a CellSet.

System_CAPS_pubmethodExecuteNonQuery()

Runs the AdomdCommand without returning any results.

System_CAPS_pubmethodExecuteReader()

Runs the AdomdCommand and returns an AdomdDataReader.

System_CAPS_pubmethodExecuteReader(CommandBehavior)

Runs the AdomdCommand using the specified System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.

System_CAPS_pubmethodExecuteScalar()

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

System_CAPS_pubmethodExecuteXmlReader()

Runs the AdomdCommand and returns an System.Xml.XmlReader.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodPrepare()

Verifies that the AdomdCommand can run.

System_CAPS_pubmethodToString()

(Inherited from Component.)

NameDescription
System_CAPS_pubeventDisposed

(Inherited from Component.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDbCommand.CreateParameter()

Creates a new instance of an IDbDataParameter object.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDbCommand.ExecuteReader()

Executes the CommandText against the Connection, and builds an IDataReader.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDbCommand.ExecuteReader(CommandBehavior)

Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehaviour values.

System_CAPS_pubinterfaceSystem_CAPS_privmethodICloneable.Clone()

Creates a new object that is a copy of the current instance.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDbCommand.Connection

Gets or sets the IDbConnection used by this instance of the AdomdCommand.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDbCommand.Parameters

Gets the IDataParameterCollection used by this instance of the AdomdCommand.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDbCommand.Transaction

Gets or sets the transaction within which the AdomdCommand object executes.

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

Return to top
Show: