Share via


AppNotificationButton.TargetAppId Property

Definition

Gets or sets the Package Family Name (PFN) for the app to be launched when the app notification button is clicked.

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

Property Value

String

Platform::String

winrt::hstring

A string containing the PFN of the target app.

Remarks

You should set either the InvokeUri or the TargetAppId, but not both. If you do set both, the system will use the TargetAppId.

For guidance on using the AppNotificationBuilder APIs to create the UI for app notifications, see App notification content.

For reference information about the XML schema for app notifications, see App notification content schema.

Applies to