UIConnectionInfoUtil.GetUIConnectionInfoFromConnectionString 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 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
连接对话框中的对象。
返回
要从指定的连接字符串获取的连接信息。
- 属性