Partager via


TrueName propriété

Gets the name of the server.

Espace de noms :  Microsoft.SqlServer.Management.Common
Assembly :  Microsoft.SqlServer.ConnectionInfo (dans Microsoft.SqlServer.ConnectionInfo.dll)

Syntaxe

'Déclaration
Public ReadOnly Property TrueName As String
    Get
'Utilisation
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

Valeur de la propriété

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

Notes

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