[This documentation is preliminary and is subject to change.]
Represents a command in a context menu.
Inheritance
- Object
- UICommand
Syntax
var uiCommand = new Windows.UI.Popups.UICommand(string, uiCommandInvokedHandler); var uiCommand = new Windows.UI.Popups.UICommand(string, uiCommandInvokedHandler, object); var uiCommand = new Windows.UI.Popups.UICommand();
Attributes
- ActivatableAttribute(Windows.UI.Popups.IUICommandFactory, 0x6020000)
- ActivatableAttribute(0x6020000)
- VersionAttribute(100794368)
Members
The UICommand class has the following types of members:
Constructors
The UICommand class has the following constructors.
| Constructor | Description |
|---|---|
| UICommand | Initializes a new instance of the UICommand class. |
| UICommand(String, UICommandInvokedHandler) | Initializes a new instance of the UICommand class, using the specified label and event handler. |
| UICommand(String, UICommandInvokedHandler, Object) | Initializes a new instance of the UICommand class, using the specified label, event handler, and command identifier. |
Methods
The UICommand class has the following methods.
| Method | Description |
|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object) |
| GetType | Gets the type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
Properties
The UICommand class has the following properties.
| Property | Access type | Description |
|---|---|---|
| Read/write | Gets or sets the identifier of the command. | |
| Read/write | Gets or sets the handler for the event that is raised when the user selects the command. | |
| Read/write | Gets or sets the label for the command. |
Requirements
|
Minimum supported client | Windows Developer Preview |
|---|---|
|
Minimum supported server | Windows Server Developer Preview |
|
Namespace |
Windows.UI.Popups |
|
Assembly |
|
See also
Build date: 9/7/2011
