Represents a command to run against a analytical data source.
The following tables list the members exposed by the AdomdCommand type.
Public Constructors
| 名称 | Description | |
|---|---|---|
| AdomdCommand | Overloaded. Initializes a new instance of the AdomdCommand class. | 
顶部
Public Properties
| 名称 | 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 System.Data.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. | 
顶部
Public Methods
(see also Protected Methods )
| 名称 | 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 | Overloaded. (inherited from Object ) | 
| .gif) | ExecuteNonQuery | Runs the AdomdCommand without returning any results. | 
| .gif) | ExecuteReader | Overloaded. Runs the AdomdCommand. | 
| .gif) | ExecuteScalar | This member is reserved for future use. | 
| .gif) | GetHashCode | (inherited from Object ) | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) | Prepare | Verifies that the AdomdCommand can run. | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) | ToString | (inherited from Object ) | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
| .gif) | Finalize | (inherited from Object ) | 
| .gif) | MemberwiseClone | (inherited from Object ) | 
顶部
Explicit Interface Implementations
| 名称 | Description | |
|---|---|---|
| ICloneable.Clone | ||
| IDbCommand.CreateParameter | ||
| IDbCommand.ExecuteReader | Overloaded. | 
顶部
请参阅
参考
AdomdCommand Class
Microsoft.AnalysisServices.AdomdServer Namespace