The ResourceID property returns the value of the resource ID set in the constructor.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public ReadOnly Property ResourceID As Short
'使用
Dim instance As ProvideMenuResourceAttribute
Dim value As Short
value = instance.ResourceID
public short ResourceID { get; }
public:
property short ResourceID {
short get ();
}
public function get ResourceID () : short
Property Value
Type: System.Int16
The resource ID of the menu resource.
Remarks
The resource ID must match the ID used in both the satellite (resource-only) DLL and the Command Table Configuration (.Ctc) Files.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Concepts
Localized Resources in MFC Applications: Satellite DLLs
Reference
ProvideMenuResourceAttribute Class