Resource.Save

Resource.Save method

Saves the resource to the provided stream.

public Resource Save(Stream stream, ResourceHandlingContext context)
ParameterTypeDescription
streamStreamThe stream in which the resource will be saved.
contextResourceHandlingContextResource handling context.

Return Value

This resource so that you can chain calls.

Exceptions

exceptioncondition
InvalidOperationExceptionRaised if OutputUrl is null. OutputUrl should be specified before saving the resource because otherwise it is impossible to specify the correct reference in the resources referencing this one.

See Also