ResourceHandler.HandleResourceReference
ResourceHandler.HandleResourceReference method
This method is responsible for handling the resource reference. In this method, you can set what the reference to the resource being handled will look like.
public virtual string HandleResourceReference(Resource resource, ResourceHandlingContext context)
Parameter | Type | Description |
---|---|---|
resource | Resource | The Resource which will be handled. |
context | ResourceHandlingContext | Resource handling context. |
Return Value
A string that will be written to the parent resource and which represents a reference to the resource that is currently being handled.
Exceptions
exception | condition |
---|---|
InvalidOperationException | Raised if OutputUrl is null and Status is Saved. OutputUrl should be specified for saved resource because otherwise it is impossible to specify the correct reference in the resources referencing this one. |
See Also
- class Resource
- class ResourceHandlingContext
- class ResourceHandler
- namespace Aspose.Html.Saving.ResourceHandlers
- assembly Aspose.HTML