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 nullNothingnullptrunitnull 引用(在 Visual Basic 中为 Nothing) value if no AdomdConnection is associated with the AdomdCommand. The default value is a nullNothingnullptrunitnull 引用(在 Visual Basic 中为 Nothing) value.

注释

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