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

System.Xml.XmlResolver.ResolveUri Method

Resolves the absolute URI from the base and relative URIs.

public virtual 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
System.Xml.XmlExceptionbaseUri and relativeUri are null.
System.Xml.ArgumentExceptionbaseUri and relativeUri are null.

Remarks

Operation
As described above.

Note to Inheritors
This method must be overridden in order to provide the functionality described above, as there is no default implementation.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0