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

要从指定的连接字符串获取的连接信息。

属性

适用于