Compartir a través de


Clase AdomdCommand

Represents a command to run against a analytical data source.

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.AnalysisServices.AdomdServer
Ensamblado:  msmgdsrv (en msmgdsrv.dll)

Sintaxis

'Declaración
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

El tipo AdomdCommand expone los siguientes miembros.

Constructores

  Nombre Descripción
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.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública CommandText Gets or sets the command to run.
Propiedad 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.
Propiedad pública CommandType Gets or sets the System.Data..::..CommandType used by the AdomdCommand.
Propiedad pública Parameters Gets an instance of an AdomdParameterCollection class that contains the parameters that the AdomdCommand uses to run the command.

Arriba

Métodos

  Nombre Descripción
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 (Se hereda 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 This member is reserved for future use.
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público Prepare Verifies that the AdomdCommand can run.
Método público ToString (Se hereda de Object.)

Arriba

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.