SMOServerConn 构造函数 (Boolean, String, String, String)

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

命名空间:  Microsoft.SqlServer.Dts.ManagedConnections
程序集:  Microsoft.SqlServer.ManagedConnections(在 Microsoft.SqlServer.ManagedConnections.dll 中)

语法

声明
Public Sub New ( _
    bUseWindowsAuthentication As Boolean, _
    UserName As String, _
    Password As String, _
    SqlServerName As String _
)
用法
Dim bUseWindowsAuthentication As Boolean 
Dim UserName As String 
Dim Password As String 
Dim SqlServerName As String 

Dim instance As New SMOServerConn(bUseWindowsAuthentication, _
    UserName, Password, SqlServerName)
public SMOServerConn(
    bool bUseWindowsAuthentication,
    string UserName,
    string Password,
    string SqlServerName
)
public:
SMOServerConn(
    bool bUseWindowsAuthentication, 
    String^ UserName, 
    String^ Password, 
    String^ SqlServerName
)
new : 
        bUseWindowsAuthentication:bool * 
        UserName:string * 
        Password:string * 
        SqlServerName:string -> SMOServerConn
public function SMOServerConn(
    bUseWindowsAuthentication : boolean, 
    UserName : String, 
    Password : String, 
    SqlServerName : 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.
  • SqlServerName
    类型:System.String
    The name of the server to which you want to make the SMO connection.

请参阅

参考

SMOServerConn 类

SMOServerConn 重载

Microsoft.SqlServer.Dts.ManagedConnections 命名空间