SqlConnectionInfo 建構函式 (String, String, String)
初始化 SqlConnectionInfo 類別的新執行個體。
命名空間: 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
型別:String
指定 SQL Server 執行個體的 String 物件值。
- userName
型別:String
String 物件值,指定連接到 SQL Server 執行個體的使用者。
- password
型別:String
String 物件值,指定使用者提供的密碼以連接到 SQL Server 執行個體。