UIConnectionInfoUtil.GetUIConnectionInfoFromConnectionString 方法

定義

重要

此 API 不符合 CLS 規範。

表示要從指定的連接字串取得的連接資訊。

public:
 static Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ GetUIConnectionInfoFromConnectionString(System::String ^ connectionString, Microsoft::SqlServer::Management::UI::ConnectionDlg::IServerType ^ connDlgServerType);
[System.CLSCompliant(false)]
public static Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo GetUIConnectionInfoFromConnectionString (string connectionString, Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType connDlgServerType);
[<System.CLSCompliant(false)>]
static member GetUIConnectionInfoFromConnectionString : string * Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType -> Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo
Public Shared Function GetUIConnectionInfoFromConnectionString (connectionString As String, connDlgServerType As IServerType) As UIConnectionInfo

參數

connectionString
String

用來開啟 SQL Server 資料庫的字串。

connDlgServerType
IServerType

連接對話方塊中的物件。

傳回

UIConnectionInfo

要從指定的連接字串取得的連接資訊。

屬性

適用於