AdomdCommand 类
Represents a command to be run against an analytical data source.
继承层次结构
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Microsoft.AnalysisServices.AdomdClient.AdomdCommand
命名空间: Microsoft.AnalysisServices.AdomdClient
程序集: Microsoft.AnalysisServices.AdomdClient(在 Microsoft.AnalysisServices.AdomdClient.dll 中)
语法
声明
Public NotInheritable Class AdomdCommand _
Inherits Component _
Implements IDbCommand, IDisposable, ICloneable
用法
Dim instance As AdomdCommand
public sealed class AdomdCommand : Component,
IDbCommand, IDisposable, ICloneable
public ref class AdomdCommand sealed : public Component,
IDbCommand, IDisposable, ICloneable
[<SealedAttribute>]
type AdomdCommand =
class
inherit Component
interface IDbCommand
interface IDisposable
interface ICloneable
end
public final class AdomdCommand extends Component implements IDbCommand, IDisposable, 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. | |
AdomdCommand(String, AdomdConnection) | Initializes a new instance of the AdomdCommand class with the text of the command and an AdomdConnection. |
页首
属性
名称 | 说明 | |
---|---|---|
ActivityID | ||
CommandStream | Gets or sets the command to run, using a System.IO.Stream. | |
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. | |
Connection | Gets or sets the AdomdConnection that the AdomdCommand uses. | |
Container | (从 Component 继承。) | |
Parameters | Gets an instance of an AdomdParameterCollection class that contains the parameters used when running the AdomdCommand. | |
Properties | Gets an instance of an AdomdPropertyCollection class that contains the properties associated with the AdomdCommand. | |
Site | (从 Component 继承。) | |
UpdatedRowSource | This member is reserved for future use. |
页首
方法
名称 | 说明 | |
---|---|---|
Cancel | Tries to cancel the execution of the AdomdCommand. | |
Clone | Creates and returns a new object that is a copy of the current AdomdCommand instance. | |
CreateObjRef | 安全关键。 (从 MarshalByRefObject 继承。) | |
CreateParameter | Returns a newly created AdomdParameter. | |
Dispose | (从 Component 继承。) | |
Equals | (从 Object 继承。) | |
Execute | Runs the AdomdCommand, and returns either a CellSet or an AdomdDataReader. | |
ExecuteCellSet | Runs the AdomdCommand and returns a CellSet. | |
ExecuteNonQuery | Runs the AdomdCommand without returning any results. | |
ExecuteReader() | Runs the AdomdCommand and returns an AdomdDataReader. | |
ExecuteReader(CommandBehavior) | Runs the AdomdCommand using the specified System.Data.CommandBehaviorenumeration value and returns an AdomdDataReader. | |
ExecuteScalar | Executes the query, and returns the first column of the first row in the result set returned by the query. | |
ExecuteXmlReader | Runs the AdomdCommand and returns an System.Xml.XmlReader. | |
GetHashCode | (从 Object 继承。) | |
GetLifetimeService | 安全关键。 (从 MarshalByRefObject 继承。) | |
GetType | (从 Object 继承。) | |
InitializeLifetimeService | 安全关键。 (从 MarshalByRefObject 继承。) | |
Prepare | Verifies that the AdomdCommand can run. | |
ToString | (从 Component 继承。) |
页首
事件
名称 | 说明 | |
---|---|---|
Disposed | (从 Component 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
ICloneable.Clone | Creates a new object that is a copy of the current instance. | |
IDbCommand.Connection | Gets or sets the AdomdConnection used by this instance of the AdomdCommand. | |
IDbCommand.CreateParameter | Creates 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 CommandBehaviour values. | |
IDbCommand.Parameters | Gets the IDataParameterCollection. | |
IDbCommand.Transaction | Gets or sets the transaction within which the command object runs. |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。