Compartir a través de


IVsWindowFrameSwitcher.AddTool(Guid, String) Method

Definition

Adds a tool to this frame switcher.

public:
 int AddTool(Guid % guidTool, System::String ^ switchContext);
public int AddTool (ref Guid guidTool, string switchContext);
abstract member AddTool : Guid * string -> int
Public Function AddTool (ByRef guidTool As Guid, switchContext As String) As Integer

Parameters

guidTool
Guid

[in] The GUID of the tool.

switchContext
String

[in] The value for the group upon which the tool will be activated. See VSConstants.VSSELELEMID for more information.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

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.

Applies to