TaskProvider.ToolbarId Property

Gets or sets this provider's toolbar ID.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

声明
Public Property ToolbarId As Integer
    Get
    Set
用法
Dim instance As TaskProvider
Dim value As Integer

value = instance.ToolbarId

instance.ToolbarId = value
public int ToolbarId { get; set; }
public:
property int ToolbarId {
    int get ();
    void set (int value);
}
member ToolbarId : int with get, set
function get ToolbarId () : int
function set ToolbarId (value : int)

Property Value

Type: System.Int32
The toolbar ID.

Remarks

Set the ToolbarGroup to null 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.

.NET Framework Security

See Also

Reference

TaskProvider Class

TaskProvider Members

Microsoft.VisualStudio.Shell Namespace