According the to spec,we have:
{noformat}
Gets a string that contains the version of the instance of SQL Server to which the client is connected.
Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Syntax
C#C++F#VB
[BrowsableAttribute(false)]
public override string ServerVersion { get; }
Property Value
Type: System.String
The version of the instance of SQL Server.
Exceptions
Exception Condition
InvalidOperationException
The connection is closed.
ServerVersion was called while the returned Task was not completed and the connection was not opened after a call to OpenAsync.
{noformat}
so if connection is closed, exception should be returned.but currently, no exception is returned, and also no any value is ruturned