OleMenuCommand.DynamicItemMatch Method
Allows a dynamic item command to match the subsequent items in its list.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Overridable Function DynamicItemMatch ( _
cmdId As Integer _
) As Boolean
public virtual bool DynamicItemMatch(
int cmdId
)
public:
virtual bool DynamicItemMatch(
int cmdId
)
abstract DynamicItemMatch :
cmdId:int -> bool
override DynamicItemMatch :
cmdId:int -> bool
public function DynamicItemMatch(
cmdId : int
) : boolean
Parameters
cmdId
Type: Int32The command ID.
Return Value
Type: 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 Walkthrough: Dynamically Adding Menu Items.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.