다음을 통해 공유


Computer 생성자 (Utility, String)

Initializes a new instance of the Computer class with the specified parent Utility object and the specified name.

네임스페이스:  Microsoft.SqlServer.Management.Utility
어셈블리:  Microsoft.SqlServer.Management.Utility(Microsoft.SqlServer.Management.Utility.dll)

구문

‘선언
Public Sub New ( _
    parent As Utility, _
    name As String _
)
‘사용 방법
Dim parent As Utility 
Dim name As String 

Dim instance As New Computer(parent, _
    name)
public Computer(
    Utility parent,
    string name
)
public:
Computer(
    Utility^ parent, 
    String^ name
)
new : 
        parent:Utility * 
        name:string -> Computer
public function Computer(
    parent : Utility, 
    name : String
)

매개 변수

  • name
    유형: System.String
    A String value that specifies the name of the computer.

주의

Provide the name of the parent Utility object and the name of the computer.

VC#

Computer computer;
computer = new Computer(Utility,"HR_Com45");

VB

Dim computer As Computer
computer = New Computer(Utility,"HR_Com45")

PowerShell

$computer = New-Object Microsoft.SqlServer.Management.Utility.Computer(Utility,"HR_Com45")

참고 항목

참조

Computer 클래스

Computer 오버로드

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