Freigeben über


AdomdCommand-Klasse

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

Vererbungshierarchie

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

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

Syntax

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

Der AdomdCommand-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode AdomdCommand() Initializes a new instance of the AdomdCommand class with default values.
Öffentliche Methode AdomdCommand(String) Initializes a new instance of the AdomdCommand class with the text of the command.
Öffentliche Methode AdomdCommand(String, AdomdConnection) Initializes a new instance of the AdomdCommand class with the text of the command and an AdomdConnection.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft ActivityID
Öffentliche Eigenschaft CommandStream Gets or sets the command to run, using a System.IO.Stream.
Öffentliche Eigenschaft CommandText Gets or sets the command to run.
Öffentliche Eigenschaft 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.
Öffentliche Eigenschaft CommandType Gets or sets the System.Data.CommandType used by the AdomdCommand.
Öffentliche Eigenschaft Connection Gets or sets the AdomdConnection that the AdomdCommand uses.
Öffentliche Eigenschaft Container (Geerbt von Component.)
Öffentliche Eigenschaft Parameters Gets an instance of an AdomdParameterCollection class that contains the parameters used when running the AdomdCommand.
Öffentliche Eigenschaft Properties Gets an instance of an AdomdPropertyCollection class that contains the properties associated with the AdomdCommand.
Öffentliche Eigenschaft Site (Geerbt von Component.)
Öffentliche Eigenschaft UpdatedRowSource This member is reserved for future use.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Cancel Tries to cancel the execution of the AdomdCommand.
Öffentliche Methode Clone Creates and returns a new object that is a copy of the current AdomdCommand instance.
Öffentliche Methode CreateObjRef Sicherheitskritisch (Geerbt von MarshalByRefObject.)
Öffentliche Methode CreateParameter Returns a newly created AdomdParameter.
Öffentliche Methode Dispose (Geerbt von Component.)
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode Execute Runs the AdomdCommand, and returns either a CellSet or an AdomdDataReader.
Öffentliche Methode ExecuteCellSet Runs the AdomdCommand and returns a CellSet.
Öffentliche Methode ExecuteNonQuery Runs the AdomdCommand without returning any results.
Öffentliche Methode ExecuteReader() Runs the AdomdCommand and returns an AdomdDataReader.
Öffentliche Methode ExecuteReader(CommandBehavior) Runs the AdomdCommand using the specified System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader.
Öffentliche Methode ExecuteScalar Executes the query, and returns the first column of the first row in the result set returned by the query.
Öffentliche Methode ExecuteXmlReader Runs the AdomdCommand and returns an System.Xml.XmlReader.
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetLifetimeService Sicherheitskritisch (Geerbt von MarshalByRefObject.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode InitializeLifetimeService Sicherheitskritisch (Geerbt von MarshalByRefObject.)
Öffentliche Methode Prepare Verifies that the AdomdCommand can run.
Öffentliche Methode ToString (Geerbt von Component.)

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis Disposed (Geerbt von Component.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode ICloneable.Clone Creates a new object that is a copy of the current instance.
Explizite SchnittstellenimplementierungPrivate Eigenschaft IDbCommand.Connection Gets or sets the AdomdConnection used by this instance of the AdomdCommand.
Explizite SchnittstellenimplementierungPrivate Methode IDbCommand.CreateParameter Creates a new instance of an IDbDataParameter object.
Explizite SchnittstellenimplementierungPrivate Methode IDbCommand.ExecuteReader() Executes the CommandText against the Connection, and builds an IDataReader.
Explizite SchnittstellenimplementierungPrivate Methode IDbCommand.ExecuteReader(CommandBehavior) Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehaviour values.
Explizite SchnittstellenimplementierungPrivate Eigenschaft IDbCommand.Parameters Gets the IDataParameterCollection.
Explizite SchnittstellenimplementierungPrivate Eigenschaft IDbCommand.Transaction Gets or sets the transaction within which the command object runs.

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.AnalysisServices.AdomdClient-Namespace