Share via


UICommand.Id Property

Definition

Gets or sets the identifier of the command.

public:
 property Platform::Object ^ Id { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable Id();

void Id(IInspectable value);
public object Id { get; set; }
var object = uICommand.id;
uICommand.id = object;
Public Property Id As Object

Property Value

Object

Platform::Object

IInspectable

Represents the identifier of the command.

Implements

Id

Remarks

If you assign a unique identifier to each menu command, you can implement a single UICommandInvokedHandler method that handles events from multiple commands.

Applies to

See also