Поделиться через


Класс AdomdCommand

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

Иерархия наследования

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

Пространство имен:  Microsoft.AnalysisServices.AdomdClient
Сборка:  Microsoft.AnalysisServices.AdomdClient (в Microsoft.AnalysisServices.AdomdClient.dll)

Синтаксис

'Декларация
Public NotInheritable Class AdomdCommand _
    Inherits Component _
    Implements IDbCommand, IDisposable, ICloneable
'Применение
Dim instance As AdomdCommand
public sealed class AdomdCommand : Component, 
    IDbCommand, IDisposable, ICloneable
public ref class AdomdCommand sealed : public Component, 
    IDbCommand, IDisposable, ICloneable
[<SealedAttribute>]
type AdomdCommand =  
    class 
        inherit Component 
        interface IDbCommand 
        interface IDisposable 
        interface ICloneable 
    end
public final class AdomdCommand extends Component implements IDbCommand, IDisposable, ICloneable

Тип AdomdCommand обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод AdomdCommand() Initializes a new instance of the AdomdCommand class with default values.
Открытый метод AdomdCommand(String) Initializes a new instance of the AdomdCommand class with the text of the command.
Открытый метод AdomdCommand(String, AdomdConnection) Initializes a new instance of the AdomdCommand class with the text of the command and an AdomdConnection.

В начало

Свойства

  Имя Описание
Открытое свойство ActivityID
Открытое свойство CommandStream Gets or sets the command to run, using a System.IO.Stream.
Открытое свойство CommandText Gets or sets the command to run.
Открытое свойство CommandTimeout 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.
Открытое свойство CommandType Gets or sets the System.Data.CommandType used by the AdomdCommand.
Открытое свойство Connection Gets or sets the AdomdConnection that the AdomdCommand uses.
Открытое свойство Container (Производный от Component.)
Открытое свойство Parameters Gets an instance of an AdomdParameterCollection class that contains the parameters used when running the AdomdCommand.
Открытое свойство Properties Gets an instance of an AdomdPropertyCollection class that contains the properties associated with the AdomdCommand.
Открытое свойство Site (Производный от Component.)
Открытое свойство UpdatedRowSource This member is reserved for future use.

В начало

Методы

  Имя Описание
Открытый метод Cancel Tries to cancel the execution of the AdomdCommand.
Открытый метод Clone Creates and returns a new object that is a copy of the current AdomdCommand instance.
Открытый метод CreateObjRef Важный элемент безопасности. (Производный от MarshalByRefObject.)
Открытый метод CreateParameter Returns a newly created AdomdParameter.
Открытый метод Dispose (Производный от Component.)
Открытый метод Equals (Производный от Object.)
Открытый метод Execute Runs the AdomdCommand, and returns either a CellSet or an AdomdDataReader.
Открытый метод ExecuteCellSet Runs the AdomdCommand and returns a CellSet.
Открытый метод ExecuteNonQuery Runs the AdomdCommand without returning any results.
Открытый метод ExecuteReader() Runs the AdomdCommand and returns an AdomdDataReader.
Открытый метод ExecuteReader(CommandBehavior) Runs the AdomdCommand using the specified System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.
Открытый метод ExecuteScalar Executes the query, and returns the first column of the first row in the result set returned by the query.
Открытый метод ExecuteXmlReader Runs the AdomdCommand and returns an System.Xml.XmlReader.
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetLifetimeService Важный элемент безопасности. (Производный от MarshalByRefObject.)
Открытый метод GetType (Производный от Object.)
Открытый метод InitializeLifetimeService Важный элемент безопасности. (Производный от MarshalByRefObject.)
Открытый метод Prepare Verifies that the AdomdCommand can run.
Открытый метод ToString (Производный от Component.)

В начало

События

  Имя Описание
Открытое событие Disposed (Производный от Component.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод ICloneable.Clone Creates a new object that is a copy of the current instance.
Явная реализация интерфейсаЗакрытое свойство IDbCommand.Connection Gets or sets the AdomdConnection used by this instance of the AdomdCommand.
Явная реализация интерфейсаЗакрытый метод IDbCommand.CreateParameter Creates a new instance of an IDbDataParameter object.
Явная реализация интерфейсаЗакрытый метод IDbCommand.ExecuteReader() Executes the CommandText against the Connection, and builds an IDataReader.
Явная реализация интерфейсаЗакрытый метод IDbCommand.ExecuteReader(CommandBehavior) Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehaviour values.
Явная реализация интерфейсаЗакрытое свойство IDbCommand.Parameters Gets the IDataParameterCollection.
Явная реализация интерфейсаЗакрытое свойство IDbCommand.Transaction Gets or sets the transaction within which the command object runs.

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.AnalysisServices.AdomdClient