Compartir a través de


Name Propiedad

Gets the name of the server, which is the physical machine name.

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

Sintaxis

'Declaración
<SfcPropertyAttribute> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String
    Get
'Uso
Dim instance As Server
Dim value As String

value = instance.Name
[SfcPropertyAttribute]
[SfcKeyAttribute()]
public string Name { get; }
[SfcPropertyAttribute]
[SfcKeyAttribute()]
public:
virtual property String^ Name {
    String^ get () sealed;
}
[<SfcPropertyAttribute>]
[<SfcKeyAttribute()>]
abstract Name : string
[<SfcPropertyAttribute>]
[<SfcKeyAttribute()>]
override Name : string
final function get Name () : String

Valor de la propiedad

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

Implementa

IAlienRootName()()()()

Ejemplos

Console.WriteLine(srv.Name)