IVsWindowFrameSwitcher::AddTool Method (Guid, String^)

 

Adds a tool to this frame switcher.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int AddTool(
	[InAttribute] Guid% guidTool,
	String^ switchContext
)

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::Int32

If 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.

Return to top
Show: