Condividi tramite


Classe AdomdCommand

Represents a command to run against a analytical data source.

Gerarchia di ereditarietà

System. . :: . .Object
  Microsoft.AnalysisServices.AdomdServer..::..AdomdCommand

Spazio dei nomi  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class AdomdCommand _
    Implements IDisposable, IDbCommand, ICloneable
'Utilizzo
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

Nel tipo AdomdCommand sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico AdomdCommand() () () () Initializes a new instance of the AdomdCommand class with default values.
Metodo pubblico AdomdCommand(String) Initializes a new instance of the AdomdCommand class with the text of the command.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica CommandText Gets or sets the command to run.
Proprietà pubblica 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.
Proprietà pubblica CommandType Gets or sets the System.Data..::..CommandType used by the AdomdCommand.
Proprietà pubblica Parameters Gets an instance of an AdomdParameterCollection class that contains the parameters that the AdomdCommand uses to run the command.

In alto

Metodi

  Nome Descrizione
Metodo pubblico {dtor} Releases all resources used by the AdomdCommand.
Metodo pubblico Cancel Tries to cancel the command that the AdomdCommand is currently running.
Metodo pubblico Clone Creates and returns an instance of an AdomdCommand class based on the current AdomdCommand.
Metodo pubblico CreateParameter Returns a newly created AdomdParameter.
Metodo pubblico Dispose Releases all resources used by the AdomdCommand.
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico ExecuteNonQuery Runs the AdomdCommand without returning any results.
Metodo pubblico ExecuteReader() () () () Runs the AdomdCommand and returns an AdomdDataReader.
Metodo pubblico ExecuteReader(CommandBehavior) Runs the AdomdCommand using the specified CommandBehavior enumeration value and returns an AdomdDataReader.
Metodo pubblico ExecuteScalar This member is reserved for future use.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico Prepare Verifies that the AdomdCommand can run.
Metodo pubblico ToString Ereditato da Object.

In alto

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.