Computer 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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)
매개 변수
예제
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")
설명
부모 유틸리티 개체의 이름과 컴퓨터 이름을 제공합니다.