共用方式為


ServerName 屬性

Gets or sets the name of the server that is associated with the registered server.

命名空間:  Microsoft.SqlServer.Management.RegisteredServers
組件:  Microsoft.SqlServer.Management.RegisteredServers (在 Microsoft.SqlServer.Management.RegisteredServers.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property ServerName As String
    Get
    Set
'用途
Dim instance As RegisteredServer
Dim value As String

value = instance.ServerName

instance.ServerName = value
[SfcPropertyAttribute(SfcPropertyFlags.Required)]
public string ServerName { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Required)]
public:
property String^ ServerName {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Required)>]
member ServerName : string with get, set
function get ServerName () : String
function set ServerName (value : String)

屬性值

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

備註

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。