Share via


QueryPropertyAttribute Class

Definition

Maps a query parameter from a URI to a property on the target page or view model during Shell navigation.

public ref class QueryPropertyAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public class QueryPropertyAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type QueryPropertyAttribute = class
    inherit Attribute
Public Class QueryPropertyAttribute
Inherits Attribute
Inheritance
QueryPropertyAttribute
Attributes

Constructors

Name Description
QueryPropertyAttribute(String, String)

Creates a new QueryPropertyAttribute that maps a query parameter to a property.

Properties

Name Description
Name

Gets the name of the property that will receive the query parameter value.

QueryId

Gets the query parameter name from the URI.

Applies to