ScriptFactory 클래스

Represents the static functions for creating different types of scripts.

상속 계층

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

네임스페이스:  Microsoft.SqlServer.Management.UI.VSIntegration.Editors
어셈블리:  SQLEditors(SQLEditors.dll)

구문

‘선언
Public NotInheritable Class ScriptFactory
‘사용 방법
Dim instance As ScriptFactory
public sealed class ScriptFactory
public ref class ScriptFactory sealed
[<SealedAttribute>]
type ScriptFactory =  class end
public final class ScriptFactory

ScriptFactory 유형에서 다음 멤버를 표시합니다.

속성

  이름 설명
공용 속성 CurrentlyActiveWndConnectionInfo 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.
공용 속성정적 멤버 Instance Gets the script factory.
공용 속성정적 멤버 NewSqlTemplateCaptionRoot Gets the root used to auto-generate names for the SQL template files.
공용 속성 OpenFileMode Gets or sets the current file open mode used to control the behavior in obtaining a current connection for each file opened.

맨 위로 이동

메서드

  이름 설명
공용 메서드 CheckAndCancelRunningQueries Used to ensure that there are no queries left running. For every running query, user will be prompted whether to cancel it.
공용 메서드 CheckDefaultKeyboardScheme Checks the default Keyboard Scheme from Environment Options.
공용 메서드 CreateNewBlankScript(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.
공용 메서드 CreateNewBlankScript(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.
공용 메서드 CreateNewBlankScript(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.
공용 메서드 CreateNewBlankScript(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.
공용 메서드 CreateNewBlankScript(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.
공용 메서드 CreateNewBlankScript(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.
공용 메서드 CreateNewScript(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.
공용 메서드 CreateNewScript(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.
공용 메서드 CreateNewScript(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.
공용 메서드 CreateNewScript(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.
공용 메서드 CreateNewScript(String, IVsProject, UIConnectionGroupInfo, IDbConnection) Creates and opens new blank script of specified file and adds it to the specified project.
공용 메서드 CreateNewScript(String, IVsProject, UIConnectionInfo, IDbConnection) Creates and opens new blank script of specified file and adds it to the specified project.
공용 메서드 CreateNewScript(String, IVsProject, UIConnectionGroupInfo, IDbConnection, String) Creates and opens new blank script of specified file and adds it to the specified project.
공용 메서드 CreateNewScript(String, IVsProject, UIConnectionInfo, IDbConnection, String) Creates and opens new blank script of specified file and adds it to the specified project.
공용 메서드 CreateNewScriptBasedOnTemplate(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.
공용 메서드 CreateNewScriptBasedOnTemplate(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.
공용 메서드 CreateNewSqlObjectDocument Creates a new SQL script with an URL as a moniker.
공용 메서드 DesignTableOrView 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.
공용 메서드 Equals (Object에서 상속됨)
공용 메서드 GetFontAndColorProvider Gets the font and color provider.
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetScriptTypeForWindow Gets the script type that is being edited by the given Visual Studio window.
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 GetVdtPreloader Gets a preloader for VDT code.
공용 메서드 InstallDatabaseDiagramSupportObjects Used by other assemblies to make sure that database diagram support objects are installed.
공용 메서드 ProcessDroppedFilesAsync Processes dropped files by marshalling a control that calls a delegate to do the work.
공용 메서드 ScheduleSqlScriptAsOneStep(String, SqlConnectionInfo, IWin32Window) Activates the schedule dialog box and creates a job with one Transact-SQL step that corresponds to the specified text.
공용 메서드 ScheduleSqlScriptAsOneStep(String, SqlConnectionInfo, IServiceProvider, IWin32Window) Activates the schedule dialog box and creates a job with one Transact-SQL step that corresponds to the specified text.
공용 메서드 ToString (Object에서 상속됨)

맨 위로 이동

필드

  이름 설명
공용 필드정적 멤버 SqlCeEditorFactoryGuid SQL Server Compact 3.5 editor factory identifier.

맨 위로 이동

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.UI.VSIntegration.Editors 네임스페이스