Click to Rate and Give Feedback
MSDN
MSDN Library
Collapse All/Expand All Collapse All
Other versions are also available for the following:
.NET Framework Class Library for Silverlight
UriMapping..::.MapUri Method

Converts the specified uniform resource identifier (URI) to a new URI, if the specified URI matches the defined template for converting.

Namespace:  System.Windows.Navigation
Assembly:  System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)
Visual Basic (Declaration)
Public Function MapUri ( _
    uri As Uri _
) As Uri
C#
public Uri MapUri(
    Uri uri
)

Parameters

uri
Type: System..::.Uri
The URI to convert.

Return Value

Type: System..::.Uri
The URI that has been converted or nullNothingnullptra null reference (Nothing in Visual Basic) if the URI cannot be converted.
ExceptionCondition
InvalidOperationException

Uri is nullNothingnullptra null reference (Nothing in Visual Basic).

-or-

MappedUri is nullNothingnullptra null reference (Nothing in Visual Basic).

-or-

Uri includes a query string.

-or-

Uri includes a content fragment.

The MapUri method determines whether the value of uri parameter matches the pattern specified in the Uri property. If the two values match, the MapUri method returns the value of the MappedUri property.

Silverlight

Supported in: 5, 4, 3

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker