Freigeben über


OleMenuCommand.MatchedCommandId Property

Gets or sets the command ID.

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

Syntax

'Declaration
Public Property MatchedCommandId As Integer
public int MatchedCommandId { get; set; }

Property Value

Type: System.Int32
The command ID that was most recently used to match this command.

Remarks

The command id must be set by the subclass when a match occurs and can be used to identify the actual command being invoked.

.NET Framework Security

See Also

Reference

OleMenuCommand Class

Microsoft.VisualStudio.Shell Namespace