UserActivity.ActivationUri 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 and sets the activation Uniform Resource Identifier (URI).
public:
property Uri ^ ActivationUri { Uri ^ get(); void set(Uri ^ value); };
Uri ActivationUri();
void ActivationUri(Uri value);
public System.Uri ActivationUri { get; set; }
var uri = userActivity.activationUri;
userActivity.activationUri = uri;
Public Property ActivationUri As Uri
Property Value
The activation URI.
Examples
If a UserActivity represented reading an RSS reader article, for example, you could set the activation URI to the URI of the article so that when the user taps on the user activity tile in the Timeline, the RSS reader app is reactivated:
userActivity.ActivationUri = new Uri("rss-reader:article?" + article.Link);
Remarks
The activation URI provides a cross-platform activation context for the activity.