다음을 통해 공유


Database 속성

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

네임스페이스:  Microsoft.AnalysisServices.AdomdClient
어셈블리:  Microsoft.AnalysisServices.AdomdClient.dll의 Microsoft.AnalysisServices.AdomdClient

구문

‘선언
<BrowsableAttribute(False)> _
Public ReadOnly Property Database As String
    Get
‘사용 방법
Dim instance As AdomdConnection
Dim value As String

value = instance.Database
[BrowsableAttribute(false)]
public string Database { get; }
[BrowsableAttribute(false)]
public:
virtual property String^ Database {
    String^ get () sealed;
}
[<BrowsableAttribute(false)>]
abstract Database : string
[<BrowsableAttribute(false)>]
override Database : string
final function get Database () : String

속성 값

형식: System. . :: . .String
A string that contains the name of the database that the AdomdConnection uses.

구현

IDbConnection. . :: . .Database

주의

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.