ScriptFactory.GetScriptTypeForWindow(IVsWindowFrame) Method

Definition

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

public:
 Microsoft::SqlServer::Management::UI::VSIntegration::Editors::ScriptType GetScriptTypeForWindow(Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ windowFrame);
public Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType GetScriptTypeForWindow (Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame windowFrame);
member this.GetScriptTypeForWindow : Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame -> Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptType
Public Function GetScriptTypeForWindow (windowFrame As IVsWindowFrame) As ScriptType

Parameters

windowFrame
IVsWindowFrame

A IVsWindowFrame object.

Returns

A predefined script type or unknown.

Applies to