Export (0) Print
Expand All

AdomdCommand Class

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

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

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.

  NameDescription
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.
Top

  NameDescription
Protected propertyCanRaiseEvents (Inherited from Component.)
Public propertyCommandStreamGets or sets the command to run, using a System.IO.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 System.Data.CommandType used by the AdomdCommand.
Public propertyConnectionGets or sets the AdomdConnection that the AdomdCommand uses.
Public propertyContainer (Inherited from Component.)
Protected propertyDesignMode (Inherited from Component.)
Protected propertyEvents (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.
Top

  NameDescription
Public methodCancelTries to cancel the execution of the AdomdCommand.
Public methodCloneCreates and returns an instance of an AdomdCommand class based on the current AdomdCommand.
Public methodCreateObjRef (Inherited from MarshalByRefObject.)
Public methodCreateParameterReturns a newly created AdomdParameter.
Public methodDispose() (Inherited from Component.)
Protected methodDispose(Boolean) (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 System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.
Public methodExecuteScalarThis member is reserved for future use.
Public methodExecuteXmlReaderRuns the AdomdCommand and returns an System.Xml.XmlReader.
Protected methodFinalize (Inherited from Component.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetLifetimeService (Inherited from MarshalByRefObject.)
Protected methodGetService (Inherited from Component.)
Public methodGetType (Inherited from Object.)
Public methodInitializeLifetimeService (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone() (Inherited from Object.)
Protected methodMemberwiseClone(Boolean) (Inherited from MarshalByRefObject.)
Public methodPrepareVerifies that the AdomdCommand can run.
Public methodToString (Inherited from Component.)
Top

  NameDescription
Public eventDisposed (Inherited from Component.)
Top

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

ADD
Show:
© 2014 Microsoft