View::ExecuteScopeNodeMenuItem method

The ExecuteScopeNodeMenuItem method executes a menu command for the specified node.

Syntax

View.ExecuteScopeNodeMenuItem( _
  ByVal MenuItemPath As String, _
  ByVal ScopeNode As Variant _
)

Parameters

MenuItemPath

The menu command path for the command to be executed.

ScopeNode

Optional. A value that specifies the node whose menu command is executed; if this parameter is not specified, the active scope node is used.

Return value

This method does not return a value.

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.ExecuteSelectionMenuItem