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. |
上層
屬性
名稱 | 說明 | |
---|---|---|
CanRaiseEvents | (繼承自 Component。) | |
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。) | |
DesignMode | (繼承自 Component。) | |
Events | (繼承自 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 an instance of an AdomdCommand class based on the current AdomdCommand. | |
CreateObjRef | (繼承自 MarshalByRefObject。) | |
CreateParameter | Returns a newly created AdomdParameter. | |
Dispose() () () () | (繼承自 Component。) | |
Dispose(Boolean) | (繼承自 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 | This member is reserved for future use. | |
ExecuteXmlReader | Runs the AdomdCommand and returns an System.Xml..::..XmlReader. | |
Finalize | (繼承自 Component。) | |
GetHashCode | (繼承自 Object。) | |
GetLifetimeService | (繼承自 MarshalByRefObject。) | |
GetService | (繼承自 Component。) | |
GetType | (繼承自 Object。) | |
InitializeLifetimeService | (繼承自 MarshalByRefObject。) | |
MemberwiseClone() () () () | (繼承自 Object。) | |
MemberwiseClone(Boolean) | (繼承自 MarshalByRefObject。) | |
Prepare | Verifies that the AdomdCommand can run. | |
ToString | (繼承自 Component。) |
上層
明確 繼承 實作
上層
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。