DbConnection.Database Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, gets the name of the current database after a connection is opened, or the database name specified in the connection string before the connection is opened.
public:
abstract property System::String ^ Database { System::String ^ get(); };
public abstract string Database { get; }
member this.Database : string
Public MustOverride ReadOnly Property Database As String
Property Value
The name of the current database or the name of the database to be used after a connection is opened. The default value is an empty string.
Implements
Remarks
A connection typically updates this property dynamically when the current database changes.