共用方式為


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.

範例

設定屬性