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 

참고 항목

참조

Computer 클래스

Microsoft.SqlServer.Management.Utility 네임스페이스