ScriptFactory.GetScriptTypeForWindow(IVsWindowFrame) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.