Partager via


UriMapper.UriMappings Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System.Windows.Navigation
Assembly:  System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)

Syntax

'Declaration
Public Property UriMappings As Collection(Of UriMapping)
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.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.