ConnectionDialog 类

定义

包含用于定义SQL Server中连接对话框行为的方法。 连接对话框用于连接到工具(如SQL Server Management Studio和SQL Server Profiler)中的SQL Server实例。

public ref class ConnectionDialog : System::Windows::Forms::Form
public class ConnectionDialog : System.Windows.Forms.Form
type ConnectionDialog = class
    inherit Form
Public Class ConnectionDialog
Inherits Form
继承
ConnectionDialog

构造函数

ConnectionDialog()

初始化 ConnectionDialog 类的新实例。

字段

doneOneTimeInit

跟踪连接对话框是否是首次成为可见。

属性

ApplicationName

获取或设置与连接对话框相关联的应用程序名称。

AvailableServers

检索可用于连接对话框的服务器。

ConnectionVerifier

获取或设置指定要用于验证连接的委托的对话框的调用方。

FirewallRuleDetectionEnabled

包含用于定义SQL Server中连接对话框行为的方法。 连接对话框用于连接到工具(如SQL Server Management Studio和SQL Server Profiler)中的SQL Server实例。

ImportRegisteredServersOnFirstLaunch

一个布尔值,该值确定在首次打开连接对话框时是否要导入已注册服务器的列表。

ServerNameSetOnLaunch

获取或设置一个值,该值指示服务器名称是否设置为启动模式。

方法

AddServer(IServerType)

向连接对话框添加服务器。

DisableOptionsButton()

禁用连接对话框中的选项按钮。

Dispose(Boolean)

释放由 ConnectionDialog 占用的非托管资源,还可以另外再释放托管资源。

EnableDisableServerInstanceControl(Boolean)

启用或禁用对象的服务器实例控件。

FixServerName()

修复连接对话框中的服务器名称。

OnClosed(EventArgs)

引发 OnClosed(EventArgs) 事件。

OnClosing(CancelEventArgs)

引发“关闭”事件。

OnHelpRequested(HelpEventArgs)

引发 OnHelpRequested(HelpEventArgs) 事件。

OnLoad(EventArgs)

引发 Load 事件。

OnVisibleChanged(EventArgs)

在某一控件更改可见性时引发事件。

ProcessKeyPreview(Message)

显示已处理的消息。

SetApplicationTitle(String)

设置连接对话框的应用程序标题。

SetConnectButtonText(String)

用于设置文本,而不是“连接”按钮的“ 连接 ”。

SetShowRememberPassword(Boolean)

设置一个值,该值指示对话框是否记住显示密码。

ShowDialogCollectValues(IWin32Window, UIConnectionInfo)

显示要为连接收集值的对话框。

ShowDialogValidateConnection(IWin32Window, UIConnectionInfo, IDbConnection)

用于收集连接信息并通过建立活动连接对其进行验证。

TryToConnect(IWin32Window, UIConnectionInfo, IDbConnection)

使用给定的连接信息打开连接并且不显示任何用户界面。

适用于