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

System.Xml.XmlUrlResolver.GetEntity Method

Maps a URI to an object containing the actual resource that the URI represents.

public override object GetEntity (Uri absoluteUri, string role, Type ofObjectToReturn)

Parameters

absoluteUri
The Uri returned from XmlUrlResolver.ResolveUri(Uri, string).
role
This parameter is not used.
ofObjectToReturn
null or typeof(System.IO.Stream).

Returns

A System.IO.Stream containing the resource, or null if ofObjectToReturn is null.

Exceptions

TypeReason
ArgumentNullExceptionabsoluteUri is null.
System.Xml.XmlExceptionofObjectToReturn is not null or typeof(System.IO.Stream).
NullReferenceExceptionabsoluteUri is null.

Remarks

Note:

This method overrides XmlResolver.GetEntity(Uri, string, Type).

Requirements

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