Share via


ScriptFactory.CreateNewBlankScript Method (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.

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

Syntax

'Declaration
Public Function CreateNewBlankScript ( _
    scriptType As ScriptType, _
    projectToAddScriptTo As IVsProject _
) As Object
'Usage
Dim instance As ScriptFactory 
Dim scriptType As ScriptType 
Dim projectToAddScriptTo As IVsProject 
Dim returnValue As Object 

returnValue = instance.CreateNewBlankScript(scriptType, _
    projectToAddScriptTo)
public Object CreateNewBlankScript(
    ScriptType scriptType,
    IVsProject projectToAddScriptTo
)
public:
Object^ CreateNewBlankScript(
    ScriptType scriptType, 
    IVsProject^ projectToAddScriptTo
)
member CreateNewBlankScript : 
        scriptType:ScriptType * 
        projectToAddScriptTo:IVsProject -> Object
public function CreateNewBlankScript(
    scriptType : ScriptType, 
    projectToAddScriptTo : IVsProject
) : Object

Parameters

  • scriptType
    Type: ScriptType
    The ScriptType of the script.
  • projectToAddScriptTo
    Type: IVsProject
    The IVsProject to add the new script to.

Return Value

Type: System.Object
The document view Object for the new script editor.

See Also

Reference

ScriptFactory Class

CreateNewBlankScript Overload

Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace