Udostępnij za pośrednictwem


Konstruktor ManagedComputer (String, String, String, ProviderArchitecture)

Inicjuje nowe wystąpienie ManagedComputer klasy podana nazwa komputera określona logowania, hasło i określonym ProviderArchitecture.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.Wmi
Zestaw:  Microsoft.SqlServer.SqlWmiManagement (w Microsoft.SqlServer.SqlWmiManagement.dll)

Składnia

'Deklaracja
Public Sub New ( _
    machineName As String, _
    userName As String, _
    password As String, _
    providerArchitecture As ProviderArchitecture _
)
'Użycie
Dim machineName As String
Dim userName As String
Dim password As String
Dim providerArchitecture As ProviderArchitecture

Dim instance As New ManagedComputer(machineName, _
    userName, password, providerArchitecture)
public ManagedComputer(
    string machineName,
    string userName,
    string password,
    ProviderArchitecture providerArchitecture
)
public:
ManagedComputer(
    String^ machineName, 
    String^ userName, 
    String^ password, 
    ProviderArchitecture providerArchitecture
)
new : 
        machineName:string * 
        userName:string * 
        password:string * 
        providerArchitecture:ProviderArchitecture -> ManagedComputer
public function ManagedComputer(
    machineName : String, 
    userName : String, 
    password : String, 
    providerArchitecture : ProviderArchitecture
)

Parametry