共用方式為


AdomdCommand.Connection 屬性

Gets or sets the AdomdConnection that the AdomdCommand uses.

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

語法

'宣告
Public Property Connection As AdomdConnection 
    Get 
    Set
'用途
Dim instance As AdomdCommand 
Dim value As AdomdConnection 

value = instance.Connection

instance.Connection = value
public AdomdConnection Connection { get; set; }
public:
property AdomdConnection^ Connection {
    AdomdConnection^ get ();
    void set (AdomdConnection^ value);
}
member Connection : AdomdConnection with get, set
function get Connection () : AdomdConnection 
function set Connection (value : AdomdConnection)

屬性值

型別:Microsoft.AnalysisServices.AdomdClient.AdomdConnection
An AdomdConnection, or a nullnull 參考 (在 Visual Basic 中為 Nothing) value if no AdomdConnection is associated with the AdomdCommand. The default value is a nullnull 參考 (在 Visual Basic 中為 Nothing) value.

備註

Before trying to run an AdomdCommand, you must set the Connection property to a valid AdomdConnection.

請參閱

參考

AdomdCommand 類別

Microsoft.AnalysisServices.AdomdClient 命名空間