Compartilhar via


Propriedade do RDL AdomdCommand.Connection

Gets or sets the AdomdConnection that the AdomdCommand uses.

Namespace:  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (em Microsoft.AnalysisServices.AdomdClient.dll)

Sintaxe

'Declaração
Public Property Connection As AdomdConnection 
    Get 
    Set
'Uso
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)

Valor da propriedade

Tipo: Microsoft.AnalysisServices.AdomdClient.AdomdConnection
An AdomdConnection, or a nulluma referência nula (Nothing no Visual Basic) value if no AdomdConnection is associated with the AdomdCommand. The default value is a nulluma referência nula (Nothing no Visual Basic) value.

Comentários

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

Consulte também

Referência

AdomdCommand Classe

Namespace Microsoft.AnalysisServices.AdomdClient