GetEntity Method
Collapse the table of content
Expand the table of content

XmlXapResolver.GetEntity Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Maps a URI to an object that contains 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 of the .NET Framework for Windows Phone 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 System.IO.Stream objects.

Return Value

Type: System.Object
A System.IO.Stream object. If the stream is not found, an exception is thrown.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft