Свойство Computer.Name
Gets the name of the computer.
Пространство имен: Microsoft.SqlServer.Management.Utility
Сборка: Microsoft.SqlServer.Management.Utility (в Microsoft.SqlServer.Management.Utility.dll)
Синтаксис
'Декларация
<SfcPropertyAttribute> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String
Get
'Применение
Dim instance As Computer
Dim value As String
value = instance.Name
[SfcPropertyAttribute]
[SfcKeyAttribute()]
public string Name { get; }
[SfcPropertyAttribute]
[SfcKeyAttribute()]
public:
property String^ Name {
String^ get ();
}
[<SfcPropertyAttribute>]
[<SfcKeyAttribute()>]
member Name : string
function get Name () : String
Значение свойства
Тип: System.String
A String value that specifies the name of the computer.
Примеры
VC#
System.Console.WriteLine(computer.Name);
VB
System.Console.WriteLine(computer.Name)
PowerShell
Write-Host $computer.Name