AdomdConnection.Database AdomdConnection.Database AdomdConnection.Database Property

Definition

Gets the name of the database to be used after the AdomdConnection is open.

public:
 property System::String ^ Database { System::String ^ get(); };
[System.ComponentModel.Browsable(false)]
public string Database { get; }
Public ReadOnly Property Database As String
Property Value

A string that contains the name of the database that the AdomdConnection uses.

Remarks

If the State property of the AdomdConnection has a value of ConnectionState.Open, the value for this property is retrieved from the provider for the current database. Otherwise, the value for this property is taken from the Catalog connection string setting of the ConnectionString property. To change this property, you must use the ChangeDatabase method.

Applies to