Compartilhar via


Classe AdomdCommand

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

Hierarquia de herança

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

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

Sintaxe

'Declaração
Public NotInheritable Class AdomdCommand _
    Inherits Component _
    Implements IDbCommand, IDisposable, ICloneable
'Uso
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

O tipo AdomdCommand expõe os membros a seguir.

Construtores

  Nome Descrição
Método público AdomdCommand() () () () Initializes a new instance of the AdomdCommand class with default values.
Método público AdomdCommand(String) Initializes a new instance of the AdomdCommand class with the text of the command.
Método público AdomdCommand(String, AdomdConnection) Initializes a new instance of the AdomdCommand class with the text of the command and an AdomdConnection.

Início

Propriedades

  Nome Descrição
Propriedade protegida CanRaiseEvents (Herdado de Component.)
Propriedade pública CommandStream Gets or sets the command to run, using a System.IO..::..Stream.
Propriedade pública CommandText Gets or sets the command to run.
Propriedade pública 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.
Propriedade pública CommandType Gets or sets the System.Data..::..CommandType used by the AdomdCommand.
Propriedade pública Connection Gets or sets the AdomdConnection that the AdomdCommand uses.
Propriedade pública Container (Herdado de Component.)
Propriedade protegida DesignMode (Herdado de Component.)
Propriedade protegida Events (Herdado de Component.)
Propriedade pública Parameters Gets an instance of an AdomdParameterCollection class that contains the parameters used when running the AdomdCommand.
Propriedade pública Properties Gets an instance of an AdomdPropertyCollection class that contains the properties associated with the AdomdCommand.
Propriedade pública Site (Herdado de Component.)
Propriedade pública UpdatedRowSource This member is reserved for future use.

Início

Métodos

  Nome Descrição
Método público Cancel Tries to cancel the execution of the AdomdCommand.
Método público Clone Creates and returns an instance of an AdomdCommand class based on the current AdomdCommand.
Método público CreateObjRef (Herdado de MarshalByRefObject.)
Método público CreateParameter Returns a newly created AdomdParameter.
Método público Dispose() () () () (Herdado de Component.)
Método protegido Dispose(Boolean) (Herdado de Component.)
Método público Equals (Herdado de Object.)
Método público Execute Runs the AdomdCommand, and returns either a CellSet or an AdomdDataReader.
Método público ExecuteCellSet Runs the AdomdCommand and returns a CellSet.
Método público ExecuteNonQuery Runs the AdomdCommand without returning any results.
Método público ExecuteReader() () () () Runs the AdomdCommand and returns an AdomdDataReader.
Método público ExecuteReader(CommandBehavior) Runs the AdomdCommand using the specified System.Data..::..CommandBehaviorenumeration value and returns an AdomdDataReader.
Método público ExecuteScalar This member is reserved for future use.
Método público ExecuteXmlReader Runs the AdomdCommand and returns an System.Xml..::..XmlReader.
Método protegido Finalize (Herdado de Component.)
Método público GetHashCode (Herdado de Object.)
Método público GetLifetimeService (Herdado de MarshalByRefObject.)
Método protegido GetService (Herdado de Component.)
Método público GetType (Herdado de Object.)
Método público InitializeLifetimeService (Herdado de MarshalByRefObject.)
Método protegido MemberwiseClone() () () () (Herdado de Object.)
Método protegido MemberwiseClone(Boolean) (Herdado de MarshalByRefObject.)
Método público Prepare Verifies that the AdomdCommand can run.
Método público ToString (Herdado de Component.)

Início

Eventos

  Nome Descrição
Evento público Disposed (Herdado de Component.)

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.