Constructeur ManagedComputer (String, String, String)
Initialise une nouvelle instance de la classe ManagedComputer avec le nom de l'ordinateur, et le nom et le mot de passe de connexion spécifiés.
Espace de noms : Microsoft.SqlServer.Management.Smo.Wmi
Assembly : Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)
Syntaxe
'Déclaration
Public Sub New ( _
machineName As String, _
userName As String, _
password As String _
)
'Utilisation
Dim machineName As String
Dim userName As String
Dim password As String
Dim instance As New ManagedComputer(machineName, _
userName, password)
public ManagedComputer(
string machineName,
string userName,
string password
)
public:
ManagedComputer(
String^ machineName,
String^ userName,
String^ password
)
new :
machineName:string *
userName:string *
password:string -> ManagedComputer
public function ManagedComputer(
machineName : String,
userName : String,
password : String
)
Paramètres
- machineName
Type : System. . :: . .String
Valeur String qui spécifie le nom de l'ordinateur.
- userName
Type : System. . :: . .String
Valeur String qui spécifie le nom de l'utilisateur.
- password
Type : System. . :: . .String
Valeur String qui spécifie le mot de passe.
Voir aussi