ServerConnection.TrueName Property

Gets the name of the server.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public ReadOnly Property TrueName As String
    Get
'Usage
Dim instance As ServerConnection
Dim value As String

value = instance.TrueName
public string TrueName { get; }
public:
property String^ TrueName {
    String^ get ();
}
member TrueName : string
function get TrueName () : String

Property Value

Type: System.String
A String value that specifies the name of the server.

Remarks

The name of the server is the equivalent to the value returned by the @@SERVERNAME Transact-SQL function.