TrueName 属性

Gets the name of the server.

命名空间:  Microsoft.SqlServer.Management.Common
程序集:  Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)

语法

声明
Public ReadOnly Property TrueName As String
    Get
用法
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

属性值

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

注释

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

示例

设置属性