PresentationLockingBehavior enumeration
Contents
[
Hide
]PresentationLockingBehavior enumeration
Represents the behavior regarding treating the IPresentation source (file or
io.RawIOBase) while loading and working with an instance of IPresentation.
The PresentationLockingBehavior type exposes the following members:
Fields
| Field | Description | 
|---|---|
| LOAD_AND_RELEASE | The source will be locked only for a time of IPresentationconstructor execution.If IBlobManagementOptions.is_temporary_files_allowedis set to false, all BLOBswill be loaded into memory. Otherwise, other means such a temporary files might be used.This behavior is slower than PresentationLockingBehavior.KEEP_LOCKED, and if it is possible to pass theownership of the source to IPresentation, it is recommended to usePresentationLockingBehavior.KEEP_LOCKED. | 
| KEEP_LOCKED | The source will be locked for a whole lifetime of IPresentationinstance, until it willbe disposed. IBlobManagementOptions.is_temporary_files_allowedis must be set to true for usingthis behavior, otherwise exception will be thrown.This behavior is recommended, it is faster and consumes less memory than PresentationLockingBehavior.LOAD_AND_RELEASE. | 
Remarks
The source is the parameter passed to the IPresentation constructor. In the
example below, the source is the “pres.pptx” file:
        For this example, the source ("pres.pptx" file) will be locked for a [`IPresentation`](/slides/python-net/aspose.slides/ipresentation) 
        instance lifetime, i.e. can't be changed or deleted by the other process.
See Also
- class IPresentation
- module aspose.slides
- library Aspose.Slides