SqlOlapConnectionInfoBase 建構函式 (String, String, String, ConnectionType)
初始化 SqlOlapConnectionInfoBase 類別的新執行個體。
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Sub New ( _
serverName As String, _
userName As String, _
password As String, _
serverType As ConnectionType _
)
'用途
Dim serverName As String
Dim userName As String
Dim password As String
Dim serverType As ConnectionType
Dim instance As New SqlOlapConnectionInfoBase(serverName, _
userName, password, serverType)
public SqlOlapConnectionInfoBase(
string serverName,
string userName,
string password,
ConnectionType serverType
)
public:
SqlOlapConnectionInfoBase(
String^ serverName,
String^ userName,
String^ password,
ConnectionType serverType
)
new :
serverName:string *
userName:string *
password:string *
serverType:ConnectionType -> SqlOlapConnectionInfoBase
public function SqlOlapConnectionInfoBase(
serverName : String,
userName : String,
password : String,
serverType : ConnectionType
)
參數
- serverName
型別:String
指定 SQL Server 執行個體的 String 值。
- userName
型別:String
指定使用者名稱的 String 值。
- password
型別:String
指定密碼的 String 值。
- serverType
型別:Microsoft.SqlServer.Management.Common.ConnectionType
指定連接類型的 ConnectionType 物件值。