Export (0) Print
Expand All

ScriptFactory Class

 

Applies To: SQL Server 2016 Preview

Represents the static functions for creating different types of scripts.

Namespace:   Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly:  SQLEditors (in SQLEditors.dll)

System.Object
  Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptFactory

public sealed class ScriptFactory

NameDescription
System_CAPS_pubpropertyCurrentlyActiveWndConnectionInfo

Gets the connection information of the currently active frame. If the active frame is not one of the window based windows and doesn't have connection information associated with it, the property returns null.

System_CAPS_pubpropertySystem_CAPS_staticInstance

Gets the script factory.

System_CAPS_pubpropertySystem_CAPS_staticNewSqlTemplateCaptionRoot

Gets the root used to auto-generate names for the SQL template files.

System_CAPS_pubpropertyOpenFileMode

Gets or sets the current file open mode used to control the behavior in obtaining a current connection for each file opened.

NameDescription
System_CAPS_pubmethodCheckAndCancelRunningQueries()

Used to ensure that there are no queries left running. For every running query, user will be prompted whether to cancel it.

System_CAPS_pubmethodCheckDefaultKeyboardScheme()

Checks the default Keyboard Scheme from Environment Options.

System_CAPS_pubmethodCreateNewBlankScript(ScriptType)

Creates and opens new blank script of type of editor that is implemented by the assembly. The new script is added to the miscellaneous project.

System_CAPS_pubmethodCreateNewBlankScript(ScriptType, IVsProject)

Creates and opens new blank script of type of editor that is implemented by the assembly. The new script is added to the specified project.

System_CAPS_pubmethodCreateNewBlankScript(ScriptType, IVsProject, UIConnectionGroupInfo, IDbConnection)

Creates and opens new blank script of type of editor that is implemented by the assembly. The new script is added to the specified project.

System_CAPS_pubmethodCreateNewBlankScript(ScriptType, IVsProject, UIConnectionInfo, IDbConnection)

Creates and opens new blank script of type of editor that is implemented by the assembly. The new script is added to the specified project.

System_CAPS_pubmethodCreateNewBlankScript(ScriptType, UIConnectionGroupInfo, IDbConnection)

Creates and opens new blank script of type of editor that is implemented by the assembly. The new script is added to the miscellaneous project.

System_CAPS_pubmethodCreateNewBlankScript(ScriptType, UIConnectionInfo, IDbConnection)

Creates and opens new blank script of type of editor that is implemented by the assembly. The new script is added to the miscellaneous project.

System_CAPS_pubmethodCreateNewScript(String, IVsProject, UIConnectionGroupInfo, IDbConnection)

Creates and opens new blank script of specified file and adds it to the specified project.

System_CAPS_pubmethodCreateNewScript(String, IVsProject, UIConnectionGroupInfo, IDbConnection, String)

Creates and opens new blank script of specified file and adds it to the specified project.

System_CAPS_pubmethodCreateNewScript(String, IVsProject, UIConnectionInfo, IDbConnection)

Creates and opens new blank script of specified file and adds it to the specified project.

System_CAPS_pubmethodCreateNewScript(String, IVsProject, UIConnectionInfo, IDbConnection, String)

Creates and opens new blank script of specified file and adds it to the specified project.

System_CAPS_pubmethodCreateNewScript(String, UIConnectionGroupInfo, IDbConnection)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

System_CAPS_pubmethodCreateNewScript(String, UIConnectionGroupInfo, IDbConnection, String)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

System_CAPS_pubmethodCreateNewScript(String, UIConnectionInfo, IDbConnection)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

System_CAPS_pubmethodCreateNewScript(String, UIConnectionInfo, IDbConnection, String)

Creates and opens new blank script of specified template file that is implemented by the assembly. The editor for this script should be implemented by this assembly. The new script is added to the miscellaneous project.

System_CAPS_pubmethodCreateNewScriptBasedOnTemplate(String, String, Boolean)

Creates a temporary query file with specified extension based on given template, opens it in Misc project, which will create a snapshot of the file, and delete the previously created query file. Without this method, Visual Studio would always create a new file with the same extension as the template.

System_CAPS_pubmethodCreateNewScriptBasedOnTemplate(String, String, Boolean, IVsProject)

Creates a temporary query file with specified extension based on given template, opens it in Misc project, which will create a snapshot of the file, and delete the previously created query file. Without this method, Visual Studio would always create a new file with the same extension as the template.

System_CAPS_pubmethodCreateNewSqlObjectDocument(String, String, String)

Creates a new SQL script with an URL as a moniker.

System_CAPS_pubmethodDesignTableOrView(DocumentType, DocumentOptions, String, IManagedConnection)

Used by external components to create a new instance of an assisted editor of a given type. Propagates back any exception that was raised during the initialization of the editor.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetFontAndColorProvider(Guid, Object)

Gets the font and color provider.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetScriptTypeForWindow(IVsWindowFrame)

Gets the script type that is being edited by the given Visual Studio window.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetVdtPreloader(SqlConnectionInfo, ISynchronizeInvoke)

Gets a preloader for VDT code.

System_CAPS_pubmethodInstallDatabaseDiagramSupportObjects(ServerConnection, String)

Used by other assemblies to make sure that database diagram support objects are installed.

System_CAPS_pubmethodProcessDroppedFilesAsync(StringCollection)

Processes dropped files by marshalling a control that calls a delegate to do the work.

System_CAPS_pubmethodScheduleSqlScriptAsOneStep(String, SqlConnectionInfo, IServiceProvider, IWin32Window)

Activates the schedule dialog box and creates a job with one Transact-SQL step that corresponds to the specified text.

System_CAPS_pubmethodScheduleSqlScriptAsOneStep(String, SqlConnectionInfo, IWin32Window)

Activates the schedule dialog box and creates a job with one Transact-SQL step that corresponds to the specified text.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticSqlCeEditorFactoryGuid

SQL Server Compact 3.5 editor factory identifier.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft