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. [Edit]

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

Parameters

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

Returns

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

Exceptions

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

Remarks

Note:

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

[Edit]

Requirements

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