PresentationLockingBehavior Enumeration |
LoadOptions loadOptions = new LoadOptions { BlobManagementOptions = { PresentationLockingBehavior = PresentationLockingBehavior.KeepLocked } }; using (IPresentation pres = new Presentation("pres.pptx", loadOptions)) { }
Namespace: Aspose.Slides
Member name | Value | Description | |
---|---|---|---|
LoadAndRelease | 0 |
The source will be locked only for a time of IPresentation constructor execution.
![]() If IsTemporaryFilesAllowed is set to false, all BLOBs
will be loaded into memory. Otherwise, other means such a temporary files might be used. ![]() This behavior is slower than KeepLocked, and if it is possible to pass the
ownership of the source to IPresentation, it is recommended to use KeepLocked.
| |
KeepLocked | 1 |
The source will be locked for a whole lifetime of IPresentation instance, until it will
be disposed.
![]() IsTemporaryFilesAllowed is must be set to true for using
this behavior, otherwise exception will be thrown. ![]() This behavior is recommended, it is faster and consumes less memory than LoadAndRelease.
| |
LoadAndRelease_Legacy_TemporaryDefault | 255 | Obsolete. The source will be locked only for a time of IPresentation constructor execution, all BLOBs will be loaded into memory. This behavior is the legacy behavior to provide backward compatibility. The same behavior can be achieved by using LoadAndRelease and set IsTemporaryFilesAllowed to false. Please consider choosing the LoadAndRelease or KeepLocked behavior, what is the most suitable for you. After LoadAndRelease_Legacy_TemporaryDefault will be removed, KeepLocked will be the default behavior. |