Share via


View::SelectionContextMenu property

The SelectionContextMenu property retrieves menu items for the List items in the result pane. This property is read-only.

Syntax

Property SelectionContextMenu As ContextMenu

Property value

The ContextMenu object for the view's selected node.

Examples

' Retrieve the SelectionContextMenu.
Dim objSelCtxMenu As MMC20.ContextMenu
Set objSelCtxMenu = objView.SelectionContextMenu
 
' Use the ContextMenu.
' This code displays the count of items in the ContextMenu.
MsgBox (objSelCtxMenu.Count)
' Use objSelCtxMenu for other processing.
' ...
 
' Free the object when done.
Set objSelCtxMenu = Nothing

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
Mmc.exe
IID
IID_View is defined as 6EFC2DA2-B38C-457E-9ABB-ED2D189B8C38

See also

View.ScopeNodeContextMenu

ContextMenu object