PushNotificationTrigger 建構函式

定義

多載

PushNotificationTrigger()

在應用程式上叫用背景工作專案,以回應 原始通知的接收。

PushNotificationTrigger(String)

在指定的應用程式上叫用背景工作專案,以回應 原始通知的接收。

PushNotificationTrigger()

在應用程式上叫用背景工作專案,以回應 原始通知的接收。

public:
 PushNotificationTrigger();
 PushNotificationTrigger();
public PushNotificationTrigger();
function PushNotificationTrigger()
Public Sub New ()

另請參閱

適用於

PushNotificationTrigger(String)

在指定的應用程式上叫用背景工作專案,以回應 原始通知的接收。

public:
 PushNotificationTrigger(Platform::String ^ applicationId);
 PushNotificationTrigger(winrt::hstring const& applicationId);
public PushNotificationTrigger(string applicationId);
function PushNotificationTrigger(applicationId)
Public Sub New (applicationId As String)

參數

applicationId
String

Platform::String

winrt::hstring

應用程式的套件相對應用程式識別碼 (PRAID) 。 指定的應用程式必須與呼叫的應用程式位於相同的套件中。 如需 PRAID 的詳細資訊,請參閱Application元素的Id屬性。

如果您要在跨進程 COM 伺服器中裝載背景工作 () ,請與主要應用程式分開,然後傳遞作為應用程式引數 applicationId ,以在自己的套件資訊清單中定義 windows.backgroundTask 延伸模組的應用程式 PRAID。

適用於