SettingsCommand(Object, String, UICommandInvokedHandler) Constructor
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.
Creates a new settings command.
public:
SettingsCommand(Platform::Object ^ settingsCommandId, Platform::String ^ label, UICommandInvokedHandler ^ handler);
SettingsCommand(IInspectable const& settingsCommandId, winrt::hstring const& label, UICommandInvokedHandler const& handler);
public SettingsCommand(object settingsCommandId, string label, UICommandInvokedHandler handler);
function SettingsCommand(settingsCommandId, label, handler)
Public Sub New (settingsCommandId As Object, label As String, handler As UICommandInvokedHandler)
Parameters
- settingsCommandId
-
Object
Platform::Object
IInspectable
The ID of the command.
- label
-
String
Platform::String
winrt::hstring
The label for the command, which is displayed in the settings pane.
- handler
- UICommandInvokedHandler
The event handler that is called when the user selects this command in the settings pane.