Share via


UriMapperBase.MapUri Method

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

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

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

Syntax

'Declaration
Public MustOverride Function MapUri ( _
    uri As Uri _
) As Uri
public abstract Uri MapUri(
    Uri 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.

Remarks

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.

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.