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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om