Compartilhar via


Construtor WMIConn (Boolean, String, String)

Initializes a new instance of the WMIConn class, initializing the authentication mode, user name, and password.

Namespace:  Microsoft.SqlServer.Dts.ManagedConnections
Assembly:  Microsoft.SqlServer.ManagedConnections (em Microsoft.SqlServer.ManagedConnections.dll)

Sintaxe

'Declaração
Public Sub New ( _
    bUseNtAuth As Boolean, _
    UserName As String, _
    Password As String _
)
'Uso
Dim bUseNtAuth As Boolean
Dim UserName As String
Dim Password As String

Dim instance As New WMIConn(bUseNtAuth, _
    UserName, Password)
public WMIConn(
    bool bUseNtAuth,
    string UserName,
    string Password
)
public:
WMIConn(
    bool bUseNtAuth, 
    String^ UserName, 
    String^ Password
)
new : 
        bUseNtAuth:bool * 
        UserName:string * 
        Password:string -> WMIConn
public function WMIConn(
    bUseNtAuth : boolean, 
    UserName : String, 
    Password : String
)

Parâmetros

  • bUseNtAuth
    Tipo: System. . :: . .Boolean
    A Boolean that specifies whether the connection manager uses Windows Authentication. true if Windows Authentication is used.