共用方式為


SMOServerConn Constructor (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 (in microsoft.sqlserver.managedconnections.dll)

語法

'宣告
Public Sub New ( _
    bUseWindowsAuthentication As Boolean, _
    UserName As String, _
    Password As String _
)
public SMOServerConn (
    bool bUseWindowsAuthentication,
    string UserName,
    string Password
)
public:
SMOServerConn (
    bool bUseWindowsAuthentication, 
    String^ UserName, 
    String^ Password
)
public SMOServerConn (
    boolean bUseWindowsAuthentication, 
    String UserName, 
    String Password
)
public function SMOServerConn (
    bUseWindowsAuthentication : boolean, 
    UserName : String, 
    Password : String
)

參數

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

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

SMOServerConn Class
SMOServerConn Members
Microsoft.SqlServer.Dts.ManagedConnections Namespace