Partager via


Classe AdomdCommand

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.AnalysisServices.AdomdClient
Assembly :  Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)

Syntaxe

'Déclaration
Public NotInheritable Class AdomdCommand _
    Inherits Component _
    Implements IDbCommand, IDisposable, ICloneable
'Utilisation
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

Le type AdomdCommand expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique AdomdCommand() Initializes a new instance of the AdomdCommand class with default values.
Méthode publique AdomdCommand(String) Initializes a new instance of the AdomdCommand class with the text of the command.
Méthode publique AdomdCommand(String, AdomdConnection) Initializes a new instance of the AdomdCommand class with the text of the command and an AdomdConnection.

Haut de la page

Propriétés

  Nom Description
Propriété publique ActivityID
Propriété publique CommandStream Gets or sets the command to run, using a System.IO.Stream.
Propriété publique CommandText Gets or sets the command to run.
Propriété publique 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.
Propriété publique CommandType Gets or sets the System.Data.CommandType used by the AdomdCommand.
Propriété publique Connection Gets or sets the AdomdConnection that the AdomdCommand uses.
Propriété publique Container (hérité de Component.)
Propriété publique Parameters Gets an instance of an AdomdParameterCollection class that contains the parameters used when running the AdomdCommand.
Propriété publique Properties Gets an instance of an AdomdPropertyCollection class that contains the properties associated with the AdomdCommand.
Propriété publique Site (hérité de Component.)
Propriété publique UpdatedRowSource This member is reserved for future use.

Haut de la page

Méthodes

  Nom Description
Méthode publique Cancel Tries to cancel the execution of the AdomdCommand.
Méthode publique Clone Creates and returns a new object that is a copy of the current AdomdCommand instance.
Méthode publique CreateObjRef Informations critiques de sécurité. (hérité de MarshalByRefObject.)
Méthode publique CreateParameter Returns a newly created AdomdParameter.
Méthode publique Dispose (hérité de Component.)
Méthode publique Equals (hérité de Object.)
Méthode publique Execute Runs the AdomdCommand, and returns either a CellSet or an AdomdDataReader.
Méthode publique ExecuteCellSet Runs the AdomdCommand and returns a CellSet.
Méthode publique ExecuteNonQuery Runs the AdomdCommand without returning any results.
Méthode publique ExecuteReader() Runs the AdomdCommand and returns an AdomdDataReader.
Méthode publique ExecuteReader(CommandBehavior) Runs the AdomdCommand using the specified System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.
Méthode publique ExecuteScalar Executes the query, and returns the first column of the first row in the result set returned by the query.
Méthode publique ExecuteXmlReader Runs the AdomdCommand and returns an System.Xml.XmlReader.
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetLifetimeService Informations critiques de sécurité. (hérité de MarshalByRefObject.)
Méthode publique GetType (hérité de Object.)
Méthode publique InitializeLifetimeService Informations critiques de sécurité. (hérité de MarshalByRefObject.)
Méthode publique Prepare Verifies that the AdomdCommand can run.
Méthode publique ToString (hérité de Component.)

Haut de la page

Événements

  Nom Description
Événement public Disposed (hérité de Component.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée ICloneable.Clone Creates a new object that is a copy of the current instance.
Implémentation d'interface explicitePropriété privée IDbCommand.Connection Gets or sets the AdomdConnection used by this instance of the AdomdCommand.
Implémentation d'interface expliciteMéthode privée IDbCommand.CreateParameter Creates a new instance of an IDbDataParameter object.
Implémentation d'interface expliciteMéthode privée IDbCommand.ExecuteReader() Executes the CommandText against the Connection, and builds an IDataReader.
Implémentation d'interface expliciteMéthode privée IDbCommand.ExecuteReader(CommandBehavior) Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehaviour values.
Implémentation d'interface explicitePropriété privée IDbCommand.Parameters Gets the IDataParameterCollection.
Implémentation d'interface explicitePropriété privée IDbCommand.Transaction Gets or sets the transaction within which the command object runs.

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.AnalysisServices.AdomdClient