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
- windowFrame
Type: IVsWindowFrame
A IVsWindowFrame object.
Return Value
Type: ScriptType
A predefined script type or unknown.
See Also
Reference
Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace