MapUri Method
Collapse the table of content
Expand the table of content

UriMapperBase.MapUri Method

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

When overridden in a derived class, converts a requested uniform resource identifier (URI) to a new URI.

Namespace:  System.Windows.Navigation
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

'Declaration
Public MustOverride Function MapUri ( _
	uri As Uri _
) As Uri

Parameters

uri
Type: System.Uri
The original URI value to be mapped to a new URI.

Return Value

Type: System.Uri
A URI to use for the request instead of the value in the uri parameter.

To implement customized URI mapping logic, you override the MapUri method and specify in that method how the URI is converted.

The MapUri method of the UriMapper class overrides MapUri and provides a basic implementation for converting one URI to another URI.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft