Resource.Save
Resource.Save method
Saves the resource to the provided stream.
public Resource Save(Stream stream, ResourceHandlingContext context)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream in which the resource will be saved. |
context | ResourceHandlingContext | Resource handling context. |
Return Value
This resource so that you can chain calls.
Exceptions
exception | condition |
---|---|
InvalidOperationException | Raised 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
- class ResourceHandlingContext
- class Resource
- namespace Aspose.Html.Saving
- assembly Aspose.HTML