共用方式為


SMOServerConn 建構函式 (Boolean, String, String)

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

命名空間:  Microsoft.SqlServer.Dts.ManagedConnections
組件:  Microsoft.SqlServer.ManagedConnections (在 Microsoft.SqlServer.ManagedConnections.dll 中)

語法

'宣告
Public Sub New ( _
    bUseWindowsAuthentication As Boolean, _
    UserName As String, _
    Password As String _
)
'用途
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
)

參數

  • bUseWindowsAuthentication
    型別:System.Boolean
    A Boolean that specifies whether the connection manager uses Windows Authentication. true if Windows Authentication is used.
  • UserName
    型別:System.String
    The user name that the connection manager uses.
  • Password
    型別:System.String
    The password that the connection manager uses.

請參閱

參考

SMOServerConn 類別

SMOServerConn 多載

Microsoft.SqlServer.Dts.ManagedConnections 命名空間