OleMenuCommand.MatchedCommandId Property

Gets or sets a the command ID.

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

Syntax

'宣言
Public Property MatchedCommandId As Integer
'使用
Dim instance As OleMenuCommand
Dim value As Integer

value = instance.MatchedCommandId

instance.MatchedCommandId = value
public int MatchedCommandId { get; set; }
public:
property int MatchedCommandId {
    int get ();
    void set (int value);
}
public function get MatchedCommandId () : int
public function set MatchedCommandId (value : int)

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.

Permissions

See Also

Reference

OleMenuCommand Class

OleMenuCommand Members

Microsoft.VisualStudio.Shell Namespace