DeepLinkParser Class

Definition

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

Examples

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));
        }

Constructors

DeepLinkParser()

Initializes a new instance of the DeepLinkParser class.

DeepLinkParser(IActivatedEventArgs)

Initializes a new instance of the DeepLinkParser class.

DeepLinkParser(String)

Initializes a new instance of the DeepLinkParser class.

DeepLinkParser(Uri)

Initializes a new instance of the DeepLinkParser class.

Properties

Root

Gets or sets the root path of the Deep link URI

Methods

Create(IActivatedEventArgs)

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

ParseUriString(String)

Parses the URI string in to components.

SetRoot(Uri)

Sets Root on this DeepLinkParser instance and computes the query string position

ValidateSourceUri(String)

Validates the source URI.

Applies to