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

建構函式

名稱 Description
ConnectionDialog()

初始化 ConnectionDialog 類別的新執行個體。

欄位

名稱 Description
doneOneTimeInit

追蹤連線對話框是否首次出現。

屬性

名稱 Description
ApplicationName

取得或設定與連線對話框相關的應用程式名稱。

AvailableServers

取得連線對話框中可用的伺服器。

ConnectionVerifier

取得或設定對話框的呼叫器,指定一個代理來驗證連線。

FirewallRuleDetectionEnabled

包含用於定義 SQL Server 中連線對話框行為的方法。 連線對話框用於連接 SQL Server Management Studio 和 SQL Server Profiler 等工具中的 SQL Server 實例。

ImportRegisteredServersOnFirstLaunch

一個布林值,決定是否在第一次開啟連線對話框時匯入已註冊伺服器清單。

ServerNameSetOnLaunch

會取得或設定一個值,指示伺服器名稱是否設為啟動模式。

方法

名稱 Description
AddServer(IServerType)

在連線對話框中新增一台伺服器。

DisableOptionsButton()

在連線對話框中關閉選項按鈕。

Dispose(Boolean)

釋放 未管理的資源, ConnectionDialog 並可選擇性地釋放受管理資源。

EnableDisableServerInstanceControl(Boolean)

啟用或停用物件的伺服器實例控制。

FixServerName()

修正連線對話框中的伺服器名稱。

OnClosed(EventArgs)

引發 OnClosed(EventArgs) 事件。

OnClosing(CancelEventArgs)

提升了結束事件。

OnHelpRequested(HelpEventArgs)

引發 OnHelpRequested(HelpEventArgs) 事件。

OnLoad(EventArgs)

會觸發負載事件。

OnVisibleChanged(EventArgs)

如果控制項改變可見性,會觸發事件。

ProcessKeyPreview(Message)

顯示一則已處理的訊息。

SetApplicationTitle(String)

設定連接對話框的應用程式標題。

SetConnectButtonText(String)

以前用來設定 連接按鈕的 文字,而不是「連接」這個字。

SetShowRememberPassword(Boolean)

設定一個值,表示對話框是否記得顯示該密碼。

ShowDialogCollectValues(IWin32Window, UIConnectionInfo)

顯示一個對話框來收集連線的數值。

ShowDialogValidateConnection(IWin32Window, UIConnectionInfo, IDbConnection)

用於收集連線資訊,並透過建立即時連線來驗證。

TryToConnect(IWin32Window, UIConnectionInfo, IDbConnection)

用給定的連線資訊開啟連線,卻沒有任何介面顯示。

適用於