CustomSystemEventTrigger(String, CustomSystemEventTriggerRecurrence) 构造函数

定义

使用指定的标识符和重复周期创建 CustomSystemEventTrigger 的实例。

public:
 CustomSystemEventTrigger(Platform::String ^ triggerId, CustomSystemEventTriggerRecurrence recurrence);
 CustomSystemEventTrigger(winrt::hstring const& triggerId, CustomSystemEventTriggerRecurrence const& recurrence);
public CustomSystemEventTrigger(string triggerId, CustomSystemEventTriggerRecurrence recurrence);
function CustomSystemEventTrigger(triggerId, recurrence)
Public Sub New (triggerId As String, recurrence As CustomSystemEventTriggerRecurrence)

参数

triggerId
String

Platform::String

winrt::hstring

创建的 CustomSystemEventTrigger 的标识符。

recurrence
CustomSystemEventTriggerRecurrence

何时可以激活触发器。

适用于