UriMapping.MapUri Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Converts the specified uniform resource identifier (URI) to a new URI, if the specified URI matches the defined template for converting.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Parameters
- uri
- Type: System.Uri
The URI to convert.
Return Value
Type: System.UriThe URI that has been converted or Nothing if the URI cannot be converted.
| Exception | Condition |
|---|---|
| InvalidOperationException | Uri is Nothing. -or- MappedUri is Nothing. -or- Uri includes a query string. -or- Uri includes a content fragment. |
Show: