UriMappings Property
Collapse the table of content
Expand the table of content

UriMapper.UriMappings Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a collection of objects that are used to convert a uniform resource identifier (URI) into a new URI.

Namespace:  System.Windows.Navigation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

public Collection<UriMapping> UriMappings { get; private set; }
<sdk:UriMapper>
  oneOrMoreUriMappings
</sdk:UriMapper> 

XAML Values

oneOrMoreUriMappings

One or more UriMapping object elements.

Property Value

Type: System.Collections.ObjectModel.Collection<UriMapping>
A collection of objects that are used to convert URI values.

You add a UriMapping object to the UriMappings collection to define a URI that you want to convert to another URI. The UriMapping object that you add contains a Uri property that specifies the requested URI to convert and a MappedUri property that specifies the new URI to use.

If you add more than one UriMapping object that contains the same value in the Uri property, only the first instance in the collection is used for mapping the URI to a new URI.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft