Partager via


ServerName propriété

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

Espace de noms :  Microsoft.SqlServer.Management.RegisteredServers
Assembly :  Microsoft.SqlServer.Management.RegisteredServers (dans Microsoft.SqlServer.Management.RegisteredServers.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property ServerName As String
    Get
    Set
'Utilisation
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)

Valeur de la propriété

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

Notes

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.