DbConnection.ServerVersion 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 a string that represents the version of the server to which the object is connected.
public:
abstract property System::String ^ ServerVersion { System::String ^ get(); };
public abstract string ServerVersion { get; }
[System.ComponentModel.Browsable(false)]
public abstract string ServerVersion { get; }
member this.ServerVersion : string
[<System.ComponentModel.Browsable(false)>]
member this.ServerVersion : string
Public MustOverride ReadOnly Property ServerVersion As String
Property Value
The version of the database. The format of the string returned depends on the specific type of connection you are using.
- Attributes
Exceptions
ServerVersion was called while the returned Task was not completed and the connection was not opened after a call to OpenAsync.
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