Computer.Name Property

Definition

Gets the name of the computer.

public:
 property System::String ^ Name { System::String ^ get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcKey(0)]
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty]
public string Name { get; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcKey(0)>]
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty>]
member this.Name : string
Public ReadOnly Property Name As String

Property Value

A String value that specifies the name of the computer.

Attributes

Examples

VC#

System.Console.WriteLine(computer.Name);  

VB

System.Console.WriteLine(computer.Name)  

PowerShell

Write-Host $computer.Name   

Applies to