다음을 통해 공유


OleMenuCommand.DynamicItemMatch Method

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

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

Syntax

‘선언
Public Overridable Function DynamicItemMatch ( _
    cmdId As Integer _
) As Boolean
public virtual bool DynamicItemMatch(
    int cmdId
)

Parameters

Return Value

Type: System.Boolean
true if the dynamic item found a match, otherwise false.

Implements

IOleMenuCommand.DynamicItemMatch(Int32)

Remarks

This method must be overridden when implementing a menu. For more information, see How to: Dynamically Add Menu Items.

.NET Framework Security

See Also

Reference

OleMenuCommand Class

Microsoft.VisualStudio.Shell Namespace