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)
ParameterTypeDescription
resourceResourceThe Resource which will be handled.
contextResourceHandlingContextResource 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

exceptioncondition
InvalidOperationExceptionRaised 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