Windows Dev Center

SettingsCommand.SettingsCommand constructor

Creates a new settings command.

Syntax


var settingsCommand = new Windows.UI.ApplicationSettings.SettingsCommand(settingsCommandId, label, 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 (device family)

Device family

Desktop

API contract

Windows.UI.ApplicationSettings.ApplicationsSettingsContract, introduced version 1.0

Namespace

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

Metadata

Windows.UI.ApplicationSettings.ApplicationsSettingsContract.winmd

Requirements (operating system)

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

 

 

Show:
© 2015 Microsoft