Compartir a través de


Computer.Name Propiedad

Gets the name of the computer.

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

Sintaxis

'Declaración
<SfcPropertyAttribute> _
<SfcKeyAttribute()> _
Public ReadOnly Property Name As String 
    Get
'Uso
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

Valor de la propiedad

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

Ejemplos

VC#

System.Console.WriteLine(computer.Name);

VB

System.Console.WriteLine(computer.Name)

PowerShell

Write-Host $computer.Name 

Vea también

Referencia

Computer Clase

Espacio de nombres Microsoft.SqlServer.Management.Utility