Compartilhar via


Classe AdomdCommand

Represents a command to run against a analytical data source.

Hierarquia de herança

System.Object
  Microsoft.AnalysisServices.AdomdServer.AdomdCommand

Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (em msmgdsrv.dll)

Sintaxe

'Declaração
Public NotInheritable Class AdomdCommand _
    Implements IDisposable, IDbCommand, ICloneable
'Uso
Dim instance As AdomdCommand
public sealed class AdomdCommand : IDisposable, 
    IDbCommand, ICloneable
public ref class AdomdCommand sealed : IDisposable, 
    IDbCommand, ICloneable
[<SealedAttribute>]
type AdomdCommand =  
    class 
        interface IDisposable 
        interface IDbCommand 
        interface ICloneable 
    end
public final class AdomdCommand implements IDisposable, IDbCommand, 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.

Início

Propriedades

  Nome Descrição
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 Parameters Gets an instance of an AdomdParameterCollection class that contains the parameters that the AdomdCommand uses to run the command.

Início

Métodos

  Nome Descrição
Método público {dtor} Releases all resources used by the AdomdCommand.
Método público Cancel Tries to cancel the command that the AdomdCommand is currently running.
Método público Clone Creates and returns an instance of an AdomdCommand class based on the current AdomdCommand.
Método público CreateParameter Returns a newly created AdomdParameter.
Método público Dispose Releases all resources used by the AdomdCommand.
Método público Equals (Herdado de Object.)
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 CommandBehavior enumeration value and returns an AdomdDataReader.
Método público ExecuteScalar Executes the statement and returns the first object of the first column.
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método público Prepare Verifies that the AdomdCommand can run.
Método público ToString (Herdado de Object.)

Início

Implementações de interfaces explícitas

  Nome Descrição
Implementações de interfaces explícitasMétodo privado ICloneable.Clone Creates a new object that is a copy of the current instance of this object.
Implementações de interfaces explícitasMétodo privado IDbCommand.CreateParameter Creates and returns a new instance of an IDbDataParameter object.
Implementações de interfaces explícitasMétodo privado IDbCommand.ExecuteReader() Executes the CommandText against the Connection and builds an IDataReader.
Implementações de interfaces explícitasMétodo privado IDbCommand.ExecuteReader(CommandBehavior) Executes the CommandText against the Connection and builds an IDataReader using one of the CommandBehavior values.

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.

Consulte também

Referência

Namespace Microsoft.AnalysisServices.AdomdServer