Compartir a través de


Database Propiedad

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

Espacio de nombres:  Microsoft.AnalysisServices.AdomdClient
Ensamblado:  Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)

Sintaxis

'Declaración
<BrowsableAttribute(False)> _
Public ReadOnly Property Database As String
    Get
'Uso
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

Valor de la propiedad

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

Implementa

IDbConnection. . :: . .Database

Comentarios

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.