XmlXapResolver.GetEntity(Uri, String, Type) Method

Definition

Maps a URI to an object containing the actual resource.

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

Parameters

absoluteUri
Uri

The URI returned from ResolveUri(Uri, String).

role
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

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

Returns

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

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1