UriParser::Resolve Method (Uri^, Uri^, UriFormatException^%)
.NET Framework (current version)
Called by Uri constructors and Uri::TryCreate to resolve a relative URI.
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.
| Exception | Condition |
|---|---|
| InvalidOperationException |
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
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: