ScriptAndResultsEditorControl 類別

定義

所有編輯器的基底類別,這些編輯器擁有指令碼,指令碼下方有分隔器,且分隔器下方有控制項。

public ref class ScriptAndResultsEditorControl abstract : Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ScriptEditorControl, Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ISqlScriptWindowWithConnection, Microsoft::VisualStudio::Shell::Interop::IVsWindowFrameNotify3
public abstract class ScriptAndResultsEditorControl : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptEditorControl, Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlScriptWindowWithConnection, Microsoft.VisualStudio.Shell.Interop.IVsWindowFrameNotify3
type ScriptAndResultsEditorControl = class
    inherit ScriptEditorControl
    interface IVsWindowFrameNotify3
    interface ISqlScriptWindowWithConnection
    interface ISqlToolsWindowWithConnectionState
Public MustInherit Class ScriptAndResultsEditorControl
Inherits ScriptEditorControl
Implements ISqlScriptWindowWithConnection, IVsWindowFrameNotify3
繼承
衍生
實作

備註

這個類別會定義分隔器成員以及一組受保護的方法,這些方法應該用來以其上方/下方的分隔器和控制項進行操作。

欄位

buildAction (繼承來源 ScriptEditorControl)
fedRootName

指定根同盟的名稱。

initialFocus (繼承來源 ScriptEditorControl)
isCloudDatabase

判斷 SQL Server Management Studio 目前是否已連接到 SQL Azure 伺服器。

isClrProjectFile (繼承來源 ScriptEditorControl)
isDacProjectFile (繼承來源 ScriptEditorControl)
isFedMemAttrChecked

布林值,這個值會指出是否已檢查同盟成員屬性。

isProjectDebugging

布林值,指出專案是否正在偵錯。

m_connection

與視窗相關聯的快取連接。

m_connectionInfoList

與連接對話方塊通訊時使用的快取連接資訊。

m_connectionToUse

指定應該在視窗完全初始化之後套用至該視窗的連接資訊,除非它是以另一個連接加上戳記。

m_dtExecBegan

指定要在腳本執行開始時儲存的成員。

m_Editor (繼承來源 ScriptEditorControl)
m_scriptSplitter

水平分隔指令碼及其他元素的分隔器。

m_serviceProvider (繼承來源 ScriptEditorControl)
m_sp (繼承來源 ShellWindowPaneUserControl)
m_strOrigMoniker (繼承來源 ScriptEditorControl)
m_timeElapsedTimer

以查詢執行期間經過的時間更新屬性視窗的計時器。

menuCommands (繼承來源 ShellWindowPaneUserControl)
projectNode (繼承來源 ScriptEditorControl)
selectionServiceForProperties (繼承來源 ShellWindowPaneUserControl)
shardName

指定分區名稱。

statusBar

狀態列。

statusBarManager (繼承來源 ScriptEditorControl)
sysShardName

指定系統分區名稱。

屬性

BuildAction (繼承來源 ScriptEditorControl)
CmdUIGuid (繼承來源 ScriptEditorControl)
Connection

在指令碼編輯器擁有目前連接的情況下傳回參數。

ConnectionInfoList

取得編輯器的連接內容。

CurrentDB

取得或設定指令碼目前的邏輯資料庫。

DefaultHelpContext (繼承來源 ScriptEditorControl)
DocData (繼承來源 ScriptEditorControl)
EditorText (繼承來源 ScriptEditorControl)
InitialFocus (繼承來源 ScriptEditorControl)
IsAFedMember

取得或設定值,這個值會指出目前資料庫是否為同盟成員。

IsConnected

取得或設定是否連接編輯器控制項。

IsControlUnderSplitterVisible

取得布林值,指定調整視窗大小的方式。

IsDebugging

取得或設定是否正在執行指令碼。

IsExecuting

取得或設定是否正在執行指令碼。

IsFrameActive (繼承來源 ScriptEditorControl)
IsScriptEditorActive

取得布林值,指定程式碼編輯器是否目前為使用中。

IsSqlCmdMode

取得或設定指定 SQLCMD 模式是否已設定的旗標。

IsWithNumberOfRowsOnStatusBar

取得布林值,指定狀態列是否包含擷取的資料列數目的面板。

LanguageServiceGUID (繼承來源 ScriptEditorControl)
NameInPropWindow (繼承來源 ShellWindowPaneUserControl)
ScriptEditorContextMenuID (繼承來源 ScriptEditorControl)
ShowCurrentResultsBelowSplitter

取得或設定布林值,指定結果顯示於分隔器下方,或是從第二個索引標籤開始。

SqlCmdVars

取得或設定字典,其中包含 Visual Studio 中資料庫專案的 sqlcmdvars 檔案內所有的變數及其值。

StatusBarManager (繼承來源 ScriptEditorControl)
VsUserContext (繼承來源 ScriptEditorControl)

方法

ChangeConnection()

使用者在已連接的情況下,想要重新連接到另一部伺服器時呼叫。

ClearCachedValues()

清除先前分區作業的快取值。

ClosePane() (繼承來源 ShellWindowPaneUserControl)
Connect()

針對查詢視窗建立新的 LIVE 連接。

CreatePaneWindow(IntPtr, Int32, Int32, Int32, Int32, IntPtr) (繼承來源 ShellWindowPaneUserControl)
Disconnect()

從伺服器中斷連接。

DisconnectAll(IWin32Window, Boolean)

中斷連接所有視窗。

Dispose(Boolean)

關閉連接,並清除正在使用的任何資源。

Exec(Guid, UInt32, UInt32, IntPtr, IntPtr) (繼承來源 ShellWindowPaneUserControl)
FillMenuCommands()

支援功能表命令。

GetDefaultSize(SIZE[]) (繼承來源 ShellWindowPaneUserControl)
GetFrameCaption(String) (繼承來源 ScriptEditorControl)
GetService(Guid) (繼承來源 ShellWindowPaneUserControl)
GetService(Type) (繼承來源 ShellWindowPaneUserControl)
InitializeSplitter()

進行所有與分隔器相關的初始化。

InitializeStatusBar()

執行與狀態列相關的初始化。 衍生類別應該覆寫它,以加入更多狀態列面板並進行調整。

IsSqlClrProjectFile(IVsTextView) (繼承來源 ScriptEditorControl)
LoadViewState(IStream) (繼承來源 ScriptEditorControl)
OnDockableChange(Int32) (繼承來源 ShellWindowPaneUserControl)
OnExec(Guid, UInt32, UInt32, IntPtr, IntPtr) (繼承來源 ShellWindowPaneUserControl)
OnHosted()

Visual Studio 設置時呼叫。 此時,服務提供者已儲存在內部變數中,因此可以放心呼叫 GetService。

OnMove() (繼承來源 ShellWindowPaneUserControl)
OnQueryStatus(Guid, UInt32, OLECMD[], IntPtr) (繼承來源 ShellWindowPaneUserControl)
OnResize(EventArgs)

覆寫 WinForms 控制項基底類別。

OnShow(Int32) (繼承來源 ScriptEditorControl)
OnSize() (繼承來源 ShellWindowPaneUserControl)
OnWindowPaneClose() (繼承來源 ShellWindowPaneUserControl)
OnWindowPaneCreate() (繼承來源 ShellWindowPaneUserControl)
QueryStatus(Guid, UInt32, OLECMD[], IntPtr) (繼承來源 ShellWindowPaneUserControl)
SaveViewState(IStream) (繼承來源 ScriptEditorControl)
SetConnection(UIConnectionGroupInfo)

將連接內容與指令碼編輯器產生關聯。

SetConnection(UIConnectionGroupInfo, IDbConnection)

啟用即時連接的戳記。

SetConnection(UIConnectionInfo)

將連接與指令碼產生關聯。

SetConnection(UIConnectionInfo, IDbConnection)

啟用搭配即時連接使用的戳記

SetSite(IServiceProvider) (繼承來源 ScriptEditorControl)
ShouldSubscribeToChildrenFocusEvent(Control) (繼承來源 ScriptEditorControl)
ShouldTryToReconnectWithCachedCI(UIConnectionInfo)

決定嘗試使用提供的連接資訊自動重新連接,或是顯示預先填入的連接對話方塊,但不自動嘗試連接。

ShowMessage(String, String, MessageBoxButtons, MessageBoxIcon) (繼承來源 ScriptEditorControl)
ToggleResultsControl(Boolean)

顯示或隱藏查詢結果控制項。

TranslateAccelerator(MSG[]) (繼承來源 ShellWindowPaneUserControl)
UpdateMenuCommandsStatus(MenuCommand)

由基底類別呼叫,以更新命令狀態。

UpdatePropWindow(Object) (繼承來源 ShellWindowPaneUserControl)

事件

NewConnectionForScript

使用者從連接對話方塊指定指令碼的新連接時引發的事件。

明確介面實作

ICustomTypeDescriptor.GetAttributes() (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetClassName() (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetComponentName() (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetConverter() (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetDefaultEvent() (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetDefaultProperty() (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetEditor(Type) (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetEvents() (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetEvents(Attribute[]) (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetProperties() (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetProperties(Attribute[]) (繼承來源 ShellWindowPaneUserControl)
ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor) (繼承來源 ShellWindowPaneUserControl)
IVsCodeWindow.Close() (繼承來源 ScriptEditorControl)
IVsCodeWindow.GetBuffer(IVsTextLines) (繼承來源 ScriptEditorControl)
IVsCodeWindow.GetEditorCaption(READONLYSTATUS, String) (繼承來源 ScriptEditorControl)
IVsCodeWindow.GetLastActiveView(IVsTextView) (繼承來源 ScriptEditorControl)
IVsCodeWindow.GetPrimaryView(IVsTextView) (繼承來源 ScriptEditorControl)
IVsCodeWindow.GetSecondaryView(IVsTextView) (繼承來源 ScriptEditorControl)
IVsCodeWindow.GetViewClassID(Guid) (繼承來源 ScriptEditorControl)
IVsCodeWindow.SetBaseEditorCaption(String[]) (繼承來源 ScriptEditorControl)
IVsCodeWindow.SetBuffer(IVsTextLines) (繼承來源 ScriptEditorControl)
IVsCodeWindow.SetViewClassID(Guid) (繼承來源 ScriptEditorControl)
IVsFindTarget.Find(String, UInt32, Int32, IVsFindHelper, UInt32) (繼承來源 ScriptEditorControl)
IVsFindTarget.GetCapabilities(Boolean[], UInt32[]) (繼承來源 ScriptEditorControl)
IVsFindTarget.GetCurrentSpan(TextSpan[]) (繼承來源 ScriptEditorControl)
IVsFindTarget.GetFindState(Object) (繼承來源 ScriptEditorControl)
IVsFindTarget.GetMatchRect(RECT[]) (繼承來源 ScriptEditorControl)
IVsFindTarget.GetProperty(UInt32, Object) (繼承來源 ScriptEditorControl)
IVsFindTarget.GetSearchImage(UInt32, IVsTextSpanSet[], IVsTextImage) (繼承來源 ScriptEditorControl)
IVsFindTarget.MarkSpan(TextSpan[]) (繼承來源 ScriptEditorControl)
IVsFindTarget.NavigateTo(TextSpan[]) (繼承來源 ScriptEditorControl)
IVsFindTarget.NotifyFindTarget(UInt32) (繼承來源 ScriptEditorControl)
IVsFindTarget.Replace(String, String, UInt32, Int32, IVsFindHelper, Int32) (繼承來源 ScriptEditorControl)
IVsFindTarget.SetFindState(Object) (繼承來源 ScriptEditorControl)
IVsStatusbarUser.SetInfo() (繼承來源 ScriptEditorControl)
IVsWindowFrameNotify3.OnClose(UInt32)
IVsWindowFrameNotify3.OnDockableChange(Int32, Int32, Int32, Int32, Int32)
IVsWindowFrameNotify3.OnMove(Int32, Int32, Int32, Int32)
IVsWindowFrameNotify3.OnSize(Int32, Int32, Int32, Int32)

適用於