Constructeur Computer (Utility, String)
Initializes a new instance of the Computer class with the specified parent Utility object and the specified name.
Espace de noms : Microsoft.SqlServer.Management.Utility
Assembly : Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)
Syntaxe
'Déclaration
Public Sub New ( _
parent As Utility, _
name As String _
)
'Utilisation
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
)
Paramètres
- parent
Type : Microsoft.SqlServer.Management.Utility.Utility
A Utility object value that is the parent of the Computer object.
- name
Type : System.String
A String value that specifies the name of the computer.
Notes
Provide the name of the parent Utility object and the name of the computer.
Exemples
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")