共用方式為


AdomdCommand.IDbCommand.Connection 屬性

Gets or sets the AdomdConnection used by this instance of the AdomdCommand.

命名空間:  Microsoft.AnalysisServices.AdomdClient
組件:  Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)

語法

'宣告
Private Property Connection As IDbConnection 
    Implements IDbCommand.Connection 
    Get 
    Set
'用途
Dim instance As AdomdCommand 
Dim value As IDbConnection 

value = CType(instance, IDbCommand).Connection 

CType(instance, IDbCommand).Connection = value
IDbConnection IDbCommand.Connection { get; set; }
private:
virtual property IDbConnection^ Connection {
    IDbConnection^ get () sealed = IDbCommand::Connection::get;
    void set (IDbConnection^ value) sealed = IDbCommand::Connection::set;
}
private abstract Connection : IDbConnection with get, set 
private override Connection : IDbConnection with get, set
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

屬性值

型別:System.Data.IDbConnection
An AdomdConnection, or a nullnull 參考 (在 Visual Basic 中為 Nothing) value if no AdomdConnection is associated with the AdomdCommand.

實作

IDbCommand.Connection

請參閱

參考

AdomdCommand 類別

Microsoft.AnalysisServices.AdomdClient 命名空間