ProvideMenuResourceAttribute Constructor (Int16, Int32)

This constructor creates a new ProvideMenuResourceAttribute object with the given resource ID and version number.

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

Syntax

'Declaration
Public Sub New ( _
    resourceID As Short, _
    version As Integer _
)
public ProvideMenuResourceAttribute(
    short resourceID,
    int version
)
public:
ProvideMenuResourceAttribute(
    short resourceID, 
    int version
)
new : 
        resourceID:int16 * 
        version:int -> ProvideMenuResourceAttribute
public function ProvideMenuResourceAttribute(
    resourceID : short, 
    version : int
)

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.

Remarks

The C# language automatically appends the word "Attribute" to the name of any attribute class. In C# code, refer to this attribute as ProvideMenuResource.

Examples

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 {}

.NET Framework Security

See Also

Reference

ProvideMenuResourceAttribute Class

ProvideMenuResourceAttribute Overload

Microsoft.VisualStudio.Shell Namespace