UICommand Constructors

Definition

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()

Creates a new instance of the UICommand class.

public:
 UICommand();
 UICommand();
public UICommand();
function UICommand()
Public Sub New ()

See also

Applies to

UICommand(String)

Creates a new instance of the UICommand class using the specified label.

public:
 UICommand(Platform::String ^ label);
 UICommand(winrt::hstring const& label);
public UICommand(string label);
function UICommand(label)
Public Sub New (label As String)

Parameters

label
String

Platform::String

winrt::hstring

The label for the UICommand.

See also

Applies to

UICommand(String, UICommandInvokedHandler)

Creates a new instance of the UICommand class using the specified label and event handler.

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)

Creates a new instance of the UICommand class using the specified label, event handler, and command identifier.

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.

See also

Applies to