Computer 생성자

정의

Computer 클래스의 새 인스턴스를 초기화합니다.

오버로드

Computer()

Computer 클래스의 새 인스턴스를 초기화합니다.

Computer(Utility, String)

지정한 부모 유틸리티 개체와 지정한 이름을 가진 Computer 클래스의 새 인스턴스를 초기화합니다.

Computer()

Computer 클래스의 새 인스턴스를 초기화합니다.

public:
 Computer();
public Computer ();
Public Sub New ()

예제

Vc #

Computer computer;  
computer = new Computer();  

VB

Dim computer As Computer  
computer = New Computer()  

PowerShell

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

설명

기본 생성자는 모든 필드를 기본값으로 초기화합니다.

적용 대상

Computer(Utility, String)

지정한 부모 유틸리티 개체와 지정한 이름을 가진 Computer 클래스의 새 인스턴스를 초기화합니다.

public:
 Computer(Microsoft::SqlServer::Management::Utility::Utility ^ parent, System::String ^ name);
public Computer (Microsoft.SqlServer.Management.Utility.Utility parent, string name);
new Microsoft.SqlServer.Management.Utility.Computer : Microsoft.SqlServer.Management.Utility.Utility * string -> Microsoft.SqlServer.Management.Utility.Computer
Public Sub New (parent As Utility, name As String)

매개 변수

parent
Utility

Utility 개체의 부모인 Computer 개체 값입니다.

name
String

컴퓨터의 이름을 지정하는 String 값입니다.

예제

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")  

설명

부모 유틸리티 개체의 이름과 컴퓨터 이름을 제공합니다.

적용 대상