Compartir a través de


ServerName Propiedad

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

Espacio de nombres:  Microsoft.SqlServer.Management.RegisteredServers
Ensamblado:  Microsoft.SqlServer.Management.RegisteredServers (en Microsoft.SqlServer.Management.RegisteredServers.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property ServerName As String
    Get
    Set
'Uso
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)

Valor de la propiedad

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

Notas

Este espacio de nombres, clase o miembro solo se admite en la versión 2.0 de Microsoft .NET Framework.