Classe AdomdCommand

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

Gerarchia di ereditarietà

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

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

Sintassi

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

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.
Metodo pubblico AdomdCommand(String, AdomdConnection) Initializes a new instance of the AdomdCommand class with the text of the command and an AdomdConnection.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica ActivityID
Proprietà pubblica CommandStream Gets or sets the command to run, using a System.IO.Stream.
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 Connection Gets or sets the AdomdConnection that the AdomdCommand uses.
Proprietà pubblica Container Ereditato da Component.
Proprietà pubblica Parameters Gets an instance of an AdomdParameterCollection class that contains the parameters used when running the AdomdCommand.
Proprietà pubblica Properties Gets an instance of an AdomdPropertyCollection class that contains the properties associated with the AdomdCommand.
Proprietà pubblica Site Ereditato da Component.
Proprietà pubblica UpdatedRowSource This member is reserved for future use.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Cancel Tries to cancel the execution of the AdomdCommand.
Metodo pubblico Clone Creates and returns a new object that is a copy of the current AdomdCommand instance.
Metodo pubblico CreateObjRef Criticità per la sicurezza. Ereditato da MarshalByRefObject.
Metodo pubblico CreateParameter Returns a newly created AdomdParameter.
Metodo pubblico Dispose Ereditato da Component.
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico Execute Runs the AdomdCommand, and returns either a CellSet or an AdomdDataReader.
Metodo pubblico ExecuteCellSet Runs the AdomdCommand and returns a CellSet.
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 System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.
Metodo pubblico ExecuteScalar Executes the query, and returns the first column of the first row in the result set returned by the query.
Metodo pubblico ExecuteXmlReader Runs the AdomdCommand and returns an System.Xml.XmlReader.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetLifetimeService Criticità per la sicurezza. Ereditato da MarshalByRefObject.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico InitializeLifetimeService Criticità per la sicurezza. Ereditato da MarshalByRefObject.
Metodo pubblico Prepare Verifies that the AdomdCommand can run.
Metodo pubblico ToString Ereditato da Component.

In alto

Eventi

  Nome Descrizione
Evento pubblico Disposed Ereditato da Component.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato ICloneable.Clone Creates a new object that is a copy of the current instance.
Implementazione esplicita dell'interfacciaProprietà privata IDbCommand.Connection Gets or sets the AdomdConnection used by this instance of the AdomdCommand.
Implementazione esplicita dell'interfacciaMetodo privato IDbCommand.CreateParameter Creates a new instance of an IDbDataParameter object.
Implementazione esplicita dell'interfacciaMetodo privato IDbCommand.ExecuteReader() Executes the CommandText against the Connection, and builds an IDataReader.
Implementazione esplicita dell'interfacciaMetodo privato IDbCommand.ExecuteReader(CommandBehavior) Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehaviour values.
Implementazione esplicita dell'interfacciaProprietà privata IDbCommand.Parameters Gets the IDataParameterCollection.
Implementazione esplicita dell'interfacciaProprietà privata IDbCommand.Transaction Gets or sets the transaction within which the command object runs.

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.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.AnalysisServices.AdomdClient