ProvideMenuResourceAttribute Constructor (Int16, Int32)
Visual Studio 2015
This constructor creates a new ProvideMenuResourceAttribute object with the given resource ID and version number.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
Parameters
- resourceID
-
Type:
System::Int16
The ID of the menu resource. It must match the resource ID used in both the satellite (resource-only) DLL and the Command Table Configuration (.ctc) File.
- version
-
Type:
System::Int32
The version number of the menu resource.
The C# language automatically appends the word "Attribute" to the name of any attribute class. In C# code, refer to this attribute as ProvideMenuResource.
The following C# code applies the ProvideMenuResource attribute to a VSPackage named MyVSPackage.
using Microsoft.VisualStudio.VSIP;
using MSVSIP = Microsoft.VisualStudio.VSIP;
[MSVSIP.Helper.ProvideMenuResource(1000, 1)]
public class MyVSPackage : MSVSIP.Helper.Package {}
Show: