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

System.Xml.XmlUrlResolver.ResolveUri Method

Resolves the absolute URI from the base and relative URIs. [Edit]

public override Uri ResolveUri (Uri baseUri, string relativeUri)

Parameters

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

Returns

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

Exceptions

TypeReason
ArgumentExceptionrelativeUri is null. [Edit]

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).

[Edit]

Requirements

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