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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.