AdomdCommand-Klasse
Represents a command to run against a analytical data source.
Vererbungshierarchie
System.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
Der AdomdCommand-Typ macht folgende Elemente verfügbar.
Konstruktoren
Name | Beschreibung | |
---|---|---|
AdomdCommand() | Initializes a new instance of the AdomdCommand class with default values. | |
AdomdCommand(String) | Initializes a new instance of the AdomdCommand class with the text of the command. |
Zum Anfang
Eigenschaften
Name | Beschreibung | |
---|---|---|
CommandText | Gets or sets the command to run. | |
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. | |
CommandType | Gets or sets the System.Data.CommandType used by the AdomdCommand. | |
Parameters | Gets an instance of an AdomdParameterCollection class that contains the parameters that the AdomdCommand uses to run the command. |
Zum Anfang
Methoden
Name | Beschreibung | |
---|---|---|
{dtor} | Releases all resources used by the AdomdCommand. | |
Cancel | Tries to cancel the command that the AdomdCommand is currently running. | |
Clone | Creates and returns an instance of an AdomdCommand class based on the current AdomdCommand. | |
CreateParameter | Returns a newly created AdomdParameter. | |
Dispose | Releases all resources used by the AdomdCommand. | |
Equals | (Geerbt von Object.) | |
ExecuteNonQuery | Runs the AdomdCommand without returning any results. | |
ExecuteReader() | Runs the AdomdCommand and returns an AdomdDataReader. | |
ExecuteReader(CommandBehavior) | Runs the AdomdCommand using the specified CommandBehavior enumeration value and returns an AdomdDataReader. | |
ExecuteScalar | Executes the statement and returns the first object of the first column. | |
GetHashCode | (Geerbt von Object.) | |
GetType | (Geerbt von Object.) | |
Prepare | Verifies that the AdomdCommand can run. | |
ToString | (Geerbt von Object.) |
Zum Anfang
Explizite Schnittstellenimplementierungen
Name | Beschreibung | |
---|---|---|
ICloneable.Clone | Creates a new object that is a copy of the current instance of this object. | |
IDbCommand.CreateParameter | Creates and returns a new instance of an IDbDataParameter object. | |
IDbCommand.ExecuteReader() | Executes the CommandText against the Connection and builds an IDataReader. | |
IDbCommand.ExecuteReader(CommandBehavior) | Executes the CommandText against the Connection and builds an IDataReader using one of the CommandBehavior values. |
Zum Anfang
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.