Partager via


Name propriété

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

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

Syntaxe

'Déclaration
<SfcPropertyAttribute> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String
    Get
'Utilisation
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

Valeur de la propriété

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

Implémente

IAlienRootName()()()()

Exemples

Console.WriteLine(srv.Name)