UICommand Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UICommand() |
Creates a new instance of the UICommand class. |
UICommand(String) |
Creates a new instance of the UICommand class using the specified label. |
UICommand(String, UICommandInvokedHandler) |
Creates a new instance of the UICommand class using the specified label and event handler. |
UICommand(String, UICommandInvokedHandler, Object) |
Creates a new instance of the UICommand class using the specified label, event handler, and command identifier. |
UICommand()
public:
UICommand();
UICommand();
public UICommand();
function UICommand()
Public Sub New ()
See also
- UICommand
- UICommand(String, UICommandInvokedHandler)
- UICommand(String, UICommandInvokedHandler, Object)
Applies to
UICommand(String)
public:
UICommand(Platform::String ^ label);
UICommand(winrt::hstring const& label);
public UICommand(string label);
function UICommand(label)
Public Sub New (label As String)
Parameters
See also
Applies to
UICommand(String, UICommandInvokedHandler)
public:
UICommand(Platform::String ^ label, UICommandInvokedHandler ^ action);
UICommand(winrt::hstring const& label, UICommandInvokedHandler const& action);
public UICommand(string label, UICommandInvokedHandler action);
function UICommand(label, action)
Public Sub New (label As String, action As UICommandInvokedHandler)
Parameters
- label
-
String
Platform::String
winrt::hstring
The label for the new command.
- action
- UICommandInvokedHandler
The event handler for the new command.
See also
Applies to
UICommand(String, UICommandInvokedHandler, Object)
public:
UICommand(Platform::String ^ label, UICommandInvokedHandler ^ action, Platform::Object ^ commandId);
UICommand(winrt::hstring const& label, UICommandInvokedHandler const& action, IInspectable const& commandId);
public UICommand(string label, UICommandInvokedHandler action, object commandId);
function UICommand(label, action, commandId)
Public Sub New (label As String, action As UICommandInvokedHandler, commandId As Object)
Parameters
- label
-
String
Platform::String
winrt::hstring
The label for the new command.
- action
- UICommandInvokedHandler
The event handler for the new command.
- commandId
-
Object
Platform::Object
IInspectable
The command identifier for the new command.