DeepLinkParser Class
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.
Provides assistance with parsing Windows.ApplicationModel.Activation.ILaunchActivatedEventArgs and its .Arguments property in to a key-value set and target path
public class DeepLinkParser : System.Collections.Generic.Dictionary<string,string>
type DeepLinkParser = class
inherit Dictionary<string, string>
Public Class DeepLinkParser
Inherits Dictionary(Of String, String)
- Inheritance
-
DeepLinkParser
- Derived
in OnLaunched of App.xaml.cs:
if (e.PrelaunchActivated == false)
{
if (rootFrame.Content == null)
{
var parser = DeepLinkParser.Create(args);
if (parser["username"] == "John Doe")
{
// do work here
}
if (parser.Root == "Signup")
{
rootFrame.Navigate(typeof(Signup));
}
Deep |
Initializes a new instance of the DeepLinkParser class. |
Deep |
Initializes a new instance of the DeepLinkParser class. |
Deep |
Initializes a new instance of the DeepLinkParser class. |
Deep |
Initializes a new instance of the DeepLinkParser class. |
Root |
Gets or sets the root path of the Deep link URI |
Create(IActivated |
Creates an instance of DeepLinkParser for the given Windows.ApplicationModel.Activation.IActivatedEventArgs |
Create(String) |
Creates an instance of DeepLinkParser for the given Uri |
Create(Uri) |
Creates an instance of DeepLinkParser for the given Uri |
Parse |
Parses the URI string in to components. |
Set |
Sets Root on this DeepLinkParser instance and computes the query string position |
Validate |
Validates the source URI. |
Producto | Versiones |
---|---|
Windows Community Toolkit | 6.1.1, 7.0.0, 7.1.0 |