ScriptAndResultsEditorControl 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
所有編輯器的基底類別,這些編輯器擁有指令碼,指令碼下方有分隔器,且分隔器下方有控制項。
本文內容
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
繼承
ScriptAndResultsEditorControl
衍生
實作
這個類別會定義分隔器成員以及一組受保護的方法,這些方法應該用來以其上方/下方的分隔器和控制項進行操作。
欄位
屬性
方法
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 )
事件
明確介面實作
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)
適用於