Table of Contents

Method ResolveUri

Namespace
SharpVectors.Xml
Assembly
SharpVectors.Core.dll

ResolveUri(Uri, string)

Resolves the absolute URI from the base and relative URIs.

public virtual Uri ResolveUri(Uri baseUri, string relativeUri)

Parameters

baseUri Uri

The base URI used to resolve the relative URI.

relativeUri string

The URI to resolve. The URI can be absolute or relative. If absolute, this value effectively replaces the baseUri value. If relative, it combines with the baseUri to make an absolute URI.

Returns

Uri

A Uri representing the absolute URI, or null if the relative URI cannot be resolved.

Exceptions

ArgumentNullException

baseUriis null or relativeUri is null