Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a command to run against an analytical data source.
Inheritance Hierarchy
Object
  Microsoft.AnalysisServices.AdomdServer.AdomdCommand
Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)
Syntax
'Declaration
Public NotInheritable Class AdomdCommand _
    Implements IDisposable, IDbCommand, ICloneable
'Usage
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
The AdomdCommand type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | AdomdCommand() | Initializes a new instance of the AdomdCommand class with default values. | 
| .gif) | AdomdCommand(String) | Initializes a new instance of the AdomdCommand class with the text of the command. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | CommandText | Gets or sets the command to run. | 
| .gif) | 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. | 
| .gif) | CommandType | Gets or sets the CommandType used by the AdomdCommand. | 
| .gif) | Parameters | Gets an instance of an AdomdParameterCollection class that contains the parameters that the AdomdCommand uses to run the command. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | {dtor} | Releases all resources used by the AdomdCommand. | 
| .gif) | Cancel | Tries to cancel the command that the AdomdCommand is currently running. | 
| .gif) | Clone | Creates and returns an instance of an AdomdCommand class based on the current AdomdCommand. | 
| .gif) | CreateParameter | Returns a newly created AdomdParameter. | 
| .gif) | Dispose | Releases all resources used by the AdomdCommand. | 
| .gif) | Equals | (Inherited from Object.) | 
| .gif) | ExecuteNonQuery | Runs the AdomdCommand without returning any results. | 
| .gif) | ExecuteReader() | Runs the AdomdCommand and returns an AdomdDataReader. | 
| .gif) | ExecuteReader(CommandBehavior) | Runs the AdomdCommand using the specified CommandBehavior enumeration value and returns an AdomdDataReader. | 
| .gif) | ExecuteScalar | Executes the statement and returns the first object of the first column. | 
| .gif) | GetHashCode | (Inherited from Object.) | 
| .gif) | GetType | (Inherited from Object.) | 
| .gif) | Prepare | Verifies that the AdomdCommand can run. | 
| .gif) | ToString | (Inherited from Object.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .gif) .gif) | ICloneableClone | Creates a new object that is a copy of the current instance of this object. | 
| .gif) .gif) | IDbCommandCreateParameter | Creates and returns a new instance of an IDbDataParameter object. | 
| .gif) .gif) | IDbCommandExecuteReader() | Executes the CommandText against the Connection and builds an IDataReader. | 
| .gif) .gif) | IDbCommandExecuteReader(CommandBehavior) | Executes the CommandText against the Connection and builds an IDataReader using one of the CommandBehavior values. | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.