IVsWindowFrameSwitcher::AddTool Method (Guid, String^)
Visual Studio 2015
Adds a tool to this frame switcher.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Parameters
- guidTool
-
Type:
System::Guid
[in] The GUID of the tool.
- switchContext
-
Type:
System::String^
[in] The value for the group upon which the tool will be activated. See VSConstants::VSSELELEMID for more information.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
The tool added should be designed for this purpose since it will not be available as a top level tool. A single tool can be added to multiple contexts by making multiple calls to this method with different switchContext values.
Show: