GetEntity()
Contents
[
Hide
]XmlUrlResolver::GetEntity(SharedPtr<Uri>, String, const TypeInfo&) method
Maps a URI to an object that contains the actual resource.
SharedPtr<Object> System::Xml::XmlUrlResolver::GetEntity(SharedPtr<Uri> absoluteUri, String role, const TypeInfo &ofObjectToReturn) override
Arguments
| Parameter | Type | Description |
|---|---|---|
| absoluteUri | SharedPtr<Uri> | The URI returned from XmlResolver::ResolveUri(SharedPtr<Uri>, String) call. |
| role | String | Currently not used. |
| ofObjectToReturn | const TypeInfo& | The type of object to return. The current implementation only returns Stream objects. |
Return Value
A stream object or nullptr if a type other than stream is specified.
Exceptions
| Exception | Description |
|---|---|
| XmlException | ofObjectToReturn is neither nullptr nor a Stream type. |
| UriFormatException | The specified URI is not an absolute URI. |
| ArgumentNullException | absoluteUri is nullptr. |
| Exception | There is a runtime error (for example, an interrupted server connection). |
See Also
- Typedef SharedPtr
- Class Object
- Class Uri
- Class String
- Class TypeInfo
- Class XmlUrlResolver
- Namespace System::Xml
- Library Aspose.Slides