XmlXapResolver.GetEntity Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Maps a URI to an object that contains the actual resource.

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

Syntax

'Declaration
Public Overrides Function GetEntity ( _
    absoluteUri As Uri, _
    role As String, _
    ofObjectToReturn As Type _
) As Object
public override Object GetEntity(
    Uri absoluteUri,
    string role,
    Type ofObjectToReturn
)

Parameters

  • role
    Type: System.String
    The current version of the .NET Framework for Silverlight 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.

Remarks

For examples that use XmlXapResolver, see Working with XmlXapResolver.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.