Compartilhar via


Propriedade TrueName

Gets the name of the server.

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

Sintaxe

'Declaração
Public ReadOnly Property TrueName As String
    Get
'Uso
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

Valor da propriedade

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

Comentários

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