GZipXmlUrlResolver.GetEntity MethodGZipXmlUrlResolver.GetEntity MethodGZipXmlUrlResolver::GetEntity Method

Maps a URI to an object containing the actual resource.

Syntax

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
)
public:
virtual object^ GetEntity(
    Uri^ absoluteUri, 
    String^ role, 
    Type^ ofObjectToReturn
) override
 

Parameters

absoluteUri

Type: System.UriSystem.UriSystem::Uri^

The URI returned from ResolveUriResolveUriResolveUri

role

Type: System.StringSystem.StringSystem::String^

The current implementation 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.TypeSystem.TypeSystem::Type^

The type of object to return. The current implementation only returns System.IO.Stream objects.

Return Value

Type: System.ObjectSystem.ObjectSystem::Object^

A System.IO.Stream object or null a null reference (Nothing in Visual Basic) nullptr if a type other than stream is specified.

Exceptions

ExceptionCondition
XmlExceptionXmlExceptionXmlException ofObjectToReturn is neither null a null reference (Nothing in Visual Basic) nullptr nor a Stream type.
UriFormatExceptionUriFormatExceptionUriFormatExceptionThe specified URI is not an absolute URI.
NullReferenceExceptionNullReferenceExceptionNullReferenceException absoluteUri is null a null reference (Nothing in Visual Basic) nullptr.
ExceptionExceptionExceptionThere is a runtime error (for example, an interrupted server connection).