Свойство Name
Gets the name of the server, which is the physical machine name.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
<SfcPropertyAttribute> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String
Get
'Применение
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
Значение свойства
Тип System. . :: . .String
A String value that specifies the name of server.
Реализует интерфейс
IAlienRootName()()()()
Примеры
Console.WriteLine(srv.Name)
См. также