XmlXapResolver.GetEntity Method (Uri, String, Type)

.NET Framework (current version)
 

Maps a URI to an object containing the actual resource.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

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

Parameters

absoluteUri
Type: System.Uri

The URI returned from ResolveUri.

role
Type: System.String

The current version does not use this parameter when resolving URIs. This is provided for future extensibility purposes. For example, this can be mapped to the xlink: role and used as an implementation specific argument in other scenarios.

ofObjectToReturn
Type: System.Type

The type of object to return. The current version only returns Stream objects.

Return Value

Type: System.Object

A Stream object. If the stream is not found, an exception is thrown.

.NET Framework
Available since 4.5
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: