共用方式為


SettingsCommand(Object, String, UICommandInvokedHandler) 建構函式

定義

建立新的設定命令。

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)

參數

settingsCommandId
Object

Platform::Object

IInspectable

命令的識別碼。

label
String

Platform::String

winrt::hstring

命令的標籤,會顯示在 [設定] 窗格中。

handler
UICommandInvokedHandler

當使用者在設定窗格中選取此命令時所呼叫的事件處理常式。

適用於