SqlConnectionInfo 构造函数 (String, String, String)

Initializes a new instance of the SqlConnectionInfo class.

命名空间:  Microsoft.SqlServer.Management.Common
程序集:  Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)

语法

声明
Public Sub New ( _
    serverName As String, _
    userName As String, _
    password As String _
)
用法
Dim serverName As String 
Dim userName As String 
Dim password As String 

Dim instance As New SqlConnectionInfo(serverName, _
    userName, password)
public SqlConnectionInfo(
    string serverName,
    string userName,
    string password
)
public:
SqlConnectionInfo(
    String^ serverName, 
    String^ userName, 
    String^ password
)
new : 
        serverName:string * 
        userName:string * 
        password:string -> SqlConnectionInfo
public function SqlConnectionInfo(
    serverName : String, 
    userName : String, 
    password : String
)

参数

  • serverName
    类型:System.String
    A String object value that specifies the instance of SQL Server.
  • userName
    类型:System.String
    A String object value that specifies the user who is connected to the instance of SQL Server.
  • password
    类型:System.String
    A String object value that specifies the password supplied by the user to connect to the instance of SQL Server.

请参阅

参考

SqlConnectionInfo 类

SqlConnectionInfo 重载

Microsoft.SqlServer.Management.Common 命名空间