UriParser.Resolve(Uri, Uri, UriFormatException) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
protected:
virtual System::String ^ Resolve(Uri ^ baseUri, Uri ^ relativeUri, [Runtime::InteropServices::Out] UriFormatException ^ % parsingError);
protected virtual string? Resolve (Uri baseUri, Uri? relativeUri, out UriFormatException? parsingError);
protected virtual string Resolve (Uri baseUri, Uri relativeUri, out UriFormatException parsingError);
abstract member Resolve : Uri * Uri * UriFormatException -> string
override this.Resolve : Uri * Uri * UriFormatException -> string
Protected Overridable Function Resolve (baseUri As Uri, relativeUri As Uri, ByRef parsingError As UriFormatException) As String
Parameters
- baseUri
- Uri
A base URI.
- relativeUri
- Uri
A relative URI.
- parsingError
- UriFormatException
When this method returns, contains the errors that occurred during the resolve process, if any.
Returns
The string of the resolved relative Uri.
Exceptions
Remarks
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.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.