Skip to main content
SettingsCommand.SettingsCommand constructor

Applies to Windows only

Creates a new settings command.

Syntax


var settingsCommand = new Windows.UI.ApplicationSettings.SettingsCommand(settingsCommandId, label, handler);

public SettingsCommand(
  object settingsCommandId, 
  string label, 
  UICommandInvokedHandler handler
)

Public Sub New (
  settingsCommandId As Object,  
  label As String,  
  handler As UICommandInvokedHandler 
)

public:
SettingsCommand(
  Object^ settingsCommandId, 
  String^ label, 
  UICommandInvokedHandler^ handler
)

Parameters

settingsCommandId

Type: Object [JavaScript] | System.Object [.NET] | Platform::Object [C++]

The ID of the command.

label

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The label for the command, which is displayed in the settings pane.

handler

Type: UICommandInvokedHandler

The event handler that is called when the user selects this command in the settings pane.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.ApplicationSettings
Windows::UI::ApplicationSettings [C++]

Metadata

Windows.winmd

See also

SettingsCommand