Share via


ScriptFactory.GetScriptTypeForWindow Method

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

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

Syntax

'Declaration
Public Function GetScriptTypeForWindow ( _
    windowFrame As IVsWindowFrame _
) As ScriptType
'Usage
Dim instance As ScriptFactory 
Dim windowFrame As IVsWindowFrame 
Dim returnValue As ScriptType 

returnValue = instance.GetScriptTypeForWindow(windowFrame)
public ScriptType GetScriptTypeForWindow(
    IVsWindowFrame windowFrame
)
public:
ScriptType GetScriptTypeForWindow(
    IVsWindowFrame^ windowFrame
)
member GetScriptTypeForWindow : 
        windowFrame:IVsWindowFrame -> ScriptType
public function GetScriptTypeForWindow(
    windowFrame : IVsWindowFrame
) : ScriptType

Parameters

Return Value

Type: ScriptType
A predefined script type or unknown.

See Also

Reference

ScriptFactory Class

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