Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of the SqlConnectionInfo class.
Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Public Sub New ( _
    serverName As String, _
    userName As String, _
    password As String _
)
'Usage
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
)
Parameters
- serverName
 Type: String
 A String object value that specifies the instance of SQL Server.
- userName
 Type: String
 A String object value that specifies the user who is connected to the instance of SQL Server.
- password
 Type: String
 A String object value that specifies the password supplied by the user to connect to the instance of SQL Server.