Resource.Embed

Resource.Embed method

Embeds this resource within its parent by encoding it as Base64. The encoding result will be written to OutputUrl.

public Resource Embed(ResourceHandlingContext context)
ParameterTypeDescription
contextResourceHandlingContextResource handling context.

Return Value

This resource so that you can chain calls.

Exceptions

exceptioncondition
InvalidOperationExceptionRaised if there is no ParentResource because there is nowhere to embed the result.

See Also