Resolve Method
Collapse the table of content
Expand the table of content

UriParser.Resolve Method

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

Called by Uri constructors and Uri.TryCreate() to resolve a relative URI.

Namespace:  System
Assembly:  System (in System.dll)

protected virtual string Resolve(
	Uri baseUri,
	Uri relativeUri,
	out UriFormatException parsingError


Type: System.Uri
A base URI.
Type: System.Uri
A relative URI.
Type: System.UriFormatException %
Errors during the resolve process, if any.

Return Value

Type: System.String
The string of the resolved relative Uri.


baseUri parameter is not an absolute Uri

- or -

baseUri parameter requires user-driven parsing.

Uri constructors and Uri.TryCreate() use Resolve to construct a URI from baseUri and relativeUri.

If a parsing error occurs, the returned string for the resolved relative Uri is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft