AdomdCommand 类
Represents a command to run against a analytical data source.
继承层次结构
System. . :: . .Object
Microsoft.AnalysisServices.AdomdServer..::..AdomdCommand
命名空间: Microsoft.AnalysisServices.AdomdServer
程序集: msmgdsrv(在 msmgdsrv.dll 中)
语法
声明
Public NotInheritable Class AdomdCommand _
Implements IDisposable, IDbCommand, ICloneable
用法
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
AdomdCommand 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
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. |
页首
属性
名称 | 说明 | |
---|---|---|
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. |
页首
方法
名称 | 说明 | |
---|---|---|
{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 | (从 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 | This member is reserved for future use. | |
Finalize | (从 Object 继承。) | |
GetHashCode | (从 Object 继承。) | |
GetType | (从 Object 继承。) | |
MemberwiseClone | (从 Object 继承。) | |
Prepare | Verifies that the AdomdCommand can run. | |
ToString | (从 Object 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
ICloneable. . :: . .Clone | ||
IDbCommand. . :: . .CreateParameter | ||
IDbCommand. . :: . .ExecuteReader() () () () | ||
IDbCommand. . :: . .ExecuteReader(CommandBehavior) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。