Compartir a través de


SMOServerConn Constructor (Boolean, String, String)

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

Espacio de nombres:  Microsoft.SqlServer.Dts.ManagedConnections
Ensamblado:  Microsoft.SqlServer.ManagedConnections (en Microsoft.SqlServer.ManagedConnections.dll)

Sintaxis

'Declaración
Public Sub New ( _
    bUseWindowsAuthentication As Boolean, _
    UserName As String, _
    Password As String _
)
'Uso
Dim bUseWindowsAuthentication As Boolean
Dim UserName As String
Dim Password As String

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

Parámetros

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