XmlXapResolver.GetEntity Method (Uri, String, Type)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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


Type: System.Uri

The URI returned from ResolveUri.

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.

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
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top