AdomdConnection.Database Property

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

命名空間: Microsoft.AnalysisServices.AdomdClient
組件: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

語法

'宣告
<BrowsableAttribute(False)> _
Public ReadOnly Property Database As String
[BrowsableAttribute(false)] 
public string Database { get; }
[BrowsableAttribute(false)] 
public:
virtual property String^ Database {
    String^ get () sealed;
}
/** @property */
public final String get_Database ()
public final function get Database () : String

屬性值

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

備註

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.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

AdomdConnection Class
AdomdConnection Members
Microsoft.AnalysisServices.AdomdClient Namespace