AppNotificationButton.TargetAppId プロパティ

定義

アプリ通知ボタンがクリックされたときに起動するアプリのパッケージ ファミリ名 (PFN) を取得または設定します。

public:
 property Platform::String ^ TargetAppId { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring TargetAppId();

void TargetAppId(winrt::hstring value);
public string TargetAppId { get; set; }
var string = appNotificationButton.targetAppId;
appNotificationButton.targetAppId = string;
Public Property TargetAppId As String

プロパティ値

String

Platform::String

winrt::hstring

ターゲット アプリの PFN を含む文字列。

注釈

InvokeUri または TargetAppId を設定する必要がありますが、両方は設定しないでください。 両方を設定すると、システムは TargetAppId を使用します。

AppNotificationBuilder API を使用してアプリ通知用の UI を作成する方法のガイダンスについては、「アプリ通知コンテンツ」を参照してください。

アプリ通知の XML スキーマのリファレンス情報については、「アプリ通知 コンテンツ スキーマ」を参照してください。

適用対象