OleMenuCommand.DynamicItemMatch Method (Int32)

 

Allows a dynamic item command to match the subsequent items in its list.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public virtual bool DynamicItemMatch(
	int cmdId
)

Parameters

cmdId
Type: System.Int32

The command ID.

Return Value

Type: System.Boolean

true if the dynamic item found a match, otherwise false.

This method must be overridden when implementing a menu. For more information, see Dynamically Adding Menu Items.

Return to top
Show: