Compartilhar via


IOleMenuCommand.DynamicItemMatch Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function DynamicItemMatch ( _
    cmdId As Integer _
) As Boolean
bool DynamicItemMatch(
    int cmdId
)
bool DynamicItemMatch(
    int cmdId
)
abstract DynamicItemMatch : 
        cmdId:int -> bool
function DynamicItemMatch(
    cmdId : int
) : boolean

Parameters

  • cmdId
    Type: Int32

    The command ID.

Return Value

Type: Boolean
true if there was a match, otherwise false.

Remarks

This method must be overridden when implementing a menu via DYNAMICITEMSTART.

.NET Framework Security

See Also

Reference

IOleMenuCommand Interface

Microsoft.VisualStudio.Shell Namespace