Edit

Share via


CollectionFormingDeepLinkParser Class

Definition

A version of DeepLinkParser which generates a comma-separated-list as the value for any option that is repeated in the query string

public class CollectionFormingDeepLinkParser : Microsoft.Toolkit.Uwp.Helpers.DeepLinkParser
type CollectionFormingDeepLinkParser = class
    inherit DeepLinkParser
Public Class CollectionFormingDeepLinkParser
Inherits DeepLinkParser
Inheritance
CollectionFormingDeepLinkParser

Examples

in OnLaunched of App.xaml.cs:

if (e.PrelaunchActivated == false)
{
    if (rootFrame.Content == null)
    {
        var parser = CollectionFormingDeepLinkParser.Create(args);
        if (parser["username"] == "John Doe")
        {
            // do work here
        }
        if (parser.Root == "Signup")
        {
            var preferences = parser["pref"].Split(',');    // now a string[] of all 'pref' querystring values passed in URI
            rootFrame.Navigate(typeof(Signup));
        }

Constructors

CollectionFormingDeepLinkParser()

Initializes a new instance of the CollectionFormingDeepLinkParser class.

CollectionFormingDeepLinkParser(IActivatedEventArgs)

Initializes a new instance of the CollectionFormingDeepLinkParser class.

CollectionFormingDeepLinkParser(String)

Initializes a new instance of the CollectionFormingDeepLinkParser class.

CollectionFormingDeepLinkParser(Uri)

Initializes a new instance of the CollectionFormingDeepLinkParser class.

Properties

Root

Gets or sets the root path of the Deep link URI

(Inherited from DeepLinkParser)

Methods

ParseUriString(String)

Parses the URI string in to components.

SetRoot(Uri)

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

(Inherited from DeepLinkParser)

Applies to