ContextMenu Object object
The ContextMenu object is used to manage and iterate an MMC context menu; it serves as a collection of MenuItem objects.
Members
The ContextMenu Object object has these types of members:
Properties
The ContextMenu Object object has these properties.
Property | Description |
---|---|
Count |
Number of MenuItem objects in use by the context menu. |
Item |
Retrieves a MenuItem object by index or path. |
Examples
The ContextMenu object supports the "For Each" enumeration syntax, as shown in the following example.
Dim objMenuItem As MMC20.MenuItem
' objCtxMenu is a ContextMenu object.
For Each objMenuItem In objCtxMenu
' Use the MenuItem object.
MsgBox (objMenuItem.DisplayName)
Next
Requirements
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|
DLL |
|
IID |
IID_ContextMenu is defined as DAB39CE0-25E6-4E07-8362-BA9C95706545 |