IContextMenuCallback.AddItem(CONTEXTMENUITEM) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a single item to a shortcut menu.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
int AddItem(Microsoft::Aspnet::Snapin::CONTEXTMENUITEM % pItem);
public int AddItem (ref Microsoft.Aspnet.Snapin.CONTEXTMENUITEM pItem);
abstract member AddItem : CONTEXTMENUITEM -> int
Public Function AddItem (ByRef pItem As CONTEXTMENUITEM) As Integer
Parameters
- pItem
- CONTEXTMENUITEM
A pointer to a CONTEXTMENUITEM with the item to add.
Returns
Return Value | Description |
---|---|
S_OK | pItem was added successfully. |
E_UNEXPECTED | An unexpected error occurred. |
E_POINTER | pItem is null (Nothing in Visual Basic). |
E_INVALIDARG | One or more of the CONTEXTMENUITEM members contains one or more values that are not valid or the values cause a known error. |
Remarks
For more information about programming with the IContextMenuCallback interface and the Microsoft Management Console (MMC), see the MMC Programmer's Guide.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.