Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UriParser::Resolve Method (Uri^, Uri^, UriFormatException^%)

 

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,
	[OutAttribute] UriFormatException^% parsingError
)

Parameters

baseUri
Type: System::Uri^

A base URI.

relativeUri
Type: System::Uri^

A relative URI.

parsingError
Type: System::UriFormatException^%

Errors during the resolve process, if any.

Return Value

Type: System::String^

The string of the resolved relative Uri.

Exception Condition
InvalidOperationException

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.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft