AppNotificationButton.TargetAppId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.