共用方式為


OleMenuCommand.MatchedCommandId Property

Definition

Gets or sets the command ID.

public:
 property int MatchedCommandId { int get(); void set(int value); };
public:
 property int MatchedCommandId { int get(); void set(int value); };
public int MatchedCommandId { get; set; }
member this.MatchedCommandId : int with get, set
Public Property MatchedCommandId As Integer

Property Value

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.

Applies to