SqlScriptEditorControl 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。
public ref class SqlScriptEditorControl : Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ScriptAndResultsEditorControl, Microsoft::VisualStudio::Shell::Interop::IVsRunningDocTableEvents
public class SqlScriptEditorControl : Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptAndResultsEditorControl, Microsoft.VisualStudio.Shell.Interop.IVsRunningDocTableEvents
type SqlScriptEditorControl = class
inherit ScriptAndResultsEditorControl
interface IVsRunningDocTableEvents
Public Class SqlScriptEditorControl
Inherits ScriptAndResultsEditorControl
Implements IVsRunningDocTableEvents
- 继承
-
SqlScriptEditorControl
- 实现
注解
脚本的执行和结果展示由 DisplaySQLResultsControl 类完成。
字段
| 名称 | 说明 |
|---|---|
| buildAction |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| disconnectAfterQuery |
如果 |
| executionControlHost |
容器里除了状态栏以外的所有东西。 用于布局。 |
| fedRootName |
指定根联邦名称。 (继承自 ScriptAndResultsEditorControl) |
| initialFocus |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| isCloudDatabase |
确定 SQL Server Management Studio 是否当前连接到 SQL Azure 服务器。 (继承自 ScriptAndResultsEditorControl) |
| isClrProjectFile |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| isDacProjectFile |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| isFedMemAttrChecked |
一个布尔值,表示是否检查了联邦成员属性。 (继承自 ScriptAndResultsEditorControl) |
| m_connection |
与窗口关联的缓存连接。 (继承自 ScriptAndResultsEditorControl) |
| m_connectionInfoList |
缓存连接信息,用于与连接对话框的通信。 (继承自 ScriptAndResultsEditorControl) |
| m_connectionToUse |
指定应在窗口完全初始化后应用的连接信息,除非有其他连接的盖章。 (继承自 ScriptAndResultsEditorControl) |
| m_dtExecBegan |
在脚本执行开始时指定要存储的成员。 (继承自 ScriptAndResultsEditorControl) |
| m_Editor |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| m_scriptSplitter |
分线器可以横向分离脚本和其他元素。 (继承自 ScriptAndResultsEditorControl) |
| m_serviceProvider |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| m_sp |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ShellWindowPaneUserControl) |
| m_strOrigMoniker |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| m_timeElapsedTimer |
在查询执行过程中,用于更新属性窗口并显示经过时间的定时器。 (继承自 ScriptAndResultsEditorControl) |
| menuCommands |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ShellWindowPaneUserControl) |
| projectNode |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| selectionServiceForProperties |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ShellWindowPaneUserControl) |
| shardName |
指定碎片名称。 (继承自 ScriptAndResultsEditorControl) |
| statusBar |
状态栏。 (继承自 ScriptAndResultsEditorControl) |
| statusBarManager |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| sysShardName |
指定系统分片名称。 (继承自 ScriptAndResultsEditorControl) |
属性
| 名称 | 说明 |
|---|---|
| BuildAction |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| CmdUIGuid |
返回与工具栏和菜单项关联的GUID,当该文档窗口激活时应自动可见。 |
| Connection |
在脚本编辑器当前连接的情况下返回参数。 (继承自 ScriptAndResultsEditorControl) |
| ConnectionInfoList |
编辑器能获取连接上下文。 (继承自 ScriptAndResultsEditorControl) |
| CurrentDB |
获取或设置该脚本当前的数据库。 |
| DefaultHelpContext |
当该编辑器激活时,它会默认推送到动态帮助窗口的那个关键词。 |
| DocData |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| EditorText |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| InitialFocus |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| IsAFedMember |
获取或设置一个值,表示当前数据库是否为联邦成员。 (继承自 ScriptAndResultsEditorControl) |
| IsConnected |
获取或设置编辑器控件是否连接。 (继承自 ScriptAndResultsEditorControl) |
| IsControlUnderSplitterVisible |
获得一个布尔值,指定窗口的大小调整方式。 (继承自 ScriptAndResultsEditorControl) |
| IsDebugging |
获取或设置脚本是否正在执行。 (继承自 ScriptAndResultsEditorControl) |
| IsExecuting |
获取或设置脚本是否正在执行。 (继承自 ScriptAndResultsEditorControl) |
| IsFrameActive |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| IsScriptEditorActive |
获得一个布尔值,指定代码编辑器当前是否处于激活状态。 (继承自 ScriptAndResultsEditorControl) |
| IsSqlCmdMode |
获取或设置标志,指定是否设置了SQLCMD模式。 (继承自 ScriptAndResultsEditorControl) |
| IsSqlObjectDocument |
得到一个 Boolean ,判断是否 SqlScriptEditorControl 是一个调试窗口。 |
| IsWithNumberOfRowsOnStatusBar |
获得一个布尔值,指定状态栏是否包含获取行数面板。 (继承自 ScriptAndResultsEditorControl) |
| LanguageServiceGUID |
获取语言服务的GUID,该服务应为Visual Studio编辑器指定,并附有脚本文本。 |
| MyOptions |
获取或设置该窗口执行时将使用的连接选项。 |
| NameInPropWindow |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ShellWindowPaneUserControl) |
| ScriptEditorContextMenuID |
获取用户右键脚本编辑器时应显示的上下文菜单标识符。 |
| ShowCurrentResultsBelowSplitter |
获得一个布尔值,指示当前查询结果是否显示在与查询文本同一层的标签页分流器下方。 |
| SqlCmdVars |
获取或设置一个包含所有变量及其值的字典,这些词典来自 Visual Studio 的数据库项目中的 sqlcmdvars 文件。 (继承自 ScriptAndResultsEditorControl) |
| StatusBarManager |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
| VsUserContext |
实现SQL脚本编辑。 该类实现了脚本的所有执行选项,并处理菜单工具栏中的所有请求。 (继承自 ScriptEditorControl) |
方法
活动
| 名称 | 说明 |
|---|---|
| NewConnectionForScript |
当用户在连接对话框中为脚本指定新连接时触发的事件。 (继承自 ScriptAndResultsEditorControl) |