GZipXmlUrlResolver.GetEntity MethodGZipXmlUrlResolver.GetEntity MethodGZipXmlUrlResolver::GetEntity Method
Maps a URI to an object containing the actual resource.
Syntax
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 if a type other than stream is specified.
Exceptions
Exception | Condition |
XmlExceptionXmlExceptionXmlException |
ofObjectToReturn is neither null
a null reference (Nothing in Visual Basic)
nullptr nor a Stream type. |
UriFormatExceptionUriFormatExceptionUriFormatException | The specified URI is not an absolute URI. |
NullReferenceExceptionNullReferenceExceptionNullReferenceException |
absoluteUri is null
a null reference (Nothing in Visual Basic)
nullptr . |
ExceptionExceptionException | There is a runtime error (for example, an interrupted server connection). |