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