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

命令的 ID。

label
String

Platform::String

winrt::hstring

命令的标签,显示在设置窗格中。

handler
UICommandInvokedHandler

当用户在设置窗格中选择此命令时调用的事件处理程序。

适用于