Udostępnij przez


RegisteredServer.ServerName Property

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

Namespace: Microsoft.SqlServer.Management.RegisteredServers
Assembly: Microsoft.SqlServer.Management.RegisteredServers (in microsoft.sqlserver.management.registeredservers.dll)

Syntax

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property ServerName As String
[SfcPropertyAttribute(SfcPropertyFlags.Required)] 
public string ServerName { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Required)] 
public:
property String^ ServerName {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ServerName ()

/** @property */
public void set_ServerName (String value)
public function get ServerName () : String

public function set ServerName (value : String)

Property Value

A String value that specifies the name of the server.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2), Windows 2000 Professional, Windows 2000 Advanced Server, Windows XP Home Edition, For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server., Windows Vista, Windows Mobile 5.0, Windows Mobile 2003 for Pocket PC, Windows CE 5.0