This documentation is archived and is not being maintained.

TaskProvider.ToolbarId Property

Gets or sets this provider's toolbar ID.

This property is not CLS-compliant.  

Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in

public int ToolbarId { get; set; }
/** @property */
public int get_ToolbarId ()

/** @property */
public void set_ToolbarId (int value)

public function get ToolbarId () : int

public function set ToolbarId (value : int)

Property Value

The toolbar ID.

Set the ToolbarGroup to a null reference (Nothing in Visual Basic)and ToolbarId to 0 to indicate that this provider has no toolbar. If you do provide a toolbar, you must include the provider dropdown as the first group, by including this line in your CTC file:

guidSHLMainMenu:IDG_VS_TASKLIST_PROVIDERLIST, <your toolbar's group>:<your toolbar menu ID>, 0x0100;

For examples of this use, see ShellCmdPlace.ctc in the Common\Inc directory of the Visual Studio SDK.