Mono Class Library: System.Xml.XmlUrlResolver Overview | Members

System.Xml.XmlUrlResolver.ResolveUri Method

Resolves the absolute URI from the base and relative URIs.

public override Uri ResolveUri (Uri baseUri, string relativeUri)

Parameters

baseUri
The Uri specifying the base URI used to resolve relativeURI.
relativeUri
A string specifying the URI to resolve. The URI can be absolute or relative.

Returns

A Uri containing the absolute URI, or null if relativeUri can not be resolved.

Exceptions

TypeReason
ArgumentExceptionrelativeUri is null.

Remarks

If relativeURI is null, it is set to string.Empty.

Note:

The absolute URI can be used as the base URI for any subsequent requests for entities that are relative to this URI.

This method overrides XmlResolver.ResolveUri(Uri, string).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0