UICommand class

Expand
This topic has not yet been rated Rate this topic

UICommand class

[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.

ConstructorDescription
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.

MethodDescription
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.

PropertyAccess typeDescription

Id

Read/writeGets or sets the identifier of the command.

Invoked

Read/writeGets or sets the handler for the event that is raised when the user selects the command.

Label

Read/writeGets 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

Windows.UI.Popups.dll

See also

Object
IUICommand

 

 

Build date: 9/7/2011

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD