com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class PresentationLockingBehavior

  • java.lang.Object
    • com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum>
      • com.aspose.ms.System.Enum
        • com.aspose.slides.PresentationLockingBehavior


  • public final class PresentationLockingBehavior
    extends com.aspose.ms.System.Enum

    Represents the behavior regarding treating the IPresentation source (file or InputStream) while loading and working with an instance of IPresentation.


     
     BlobManagementOptions blobOptions = new BlobManagementOptions();
     blobOptions.setPresentationLockingBehavior(PresentationLockingBehavior.KeepLocked);
     LoadOptions loadOptions = new LoadOptions();
     loadOptions.setBlobManagementOptions(blobOptions);
     IPresentation pres = new Presentation("pres.pptx", loadOptions);
     


    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 instance lifetime, i.e. can't be changed or deleted by the other process.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.aspose.ms.System.Enum

        com.aspose.ms.System.Enum.AbstractEnum, com.aspose.ms.System.Enum.FlaggedEnum, com.aspose.ms.System.Enum.ObjectEnum, com.aspose.ms.System.Enum.SimpleEnum
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int KeepLocked
      The source will be locked for a whole lifetime of IPresentation instance, until it will be disposed.
      static int LoadAndRelease
      The source will be locked only for a time of IPresentation constructor execution.
      static int LoadAndRelease_Legacy_TemporaryDefault
      Deprecated. 
      Use KeepLocked or LoadAndRelease. The option will be removed in version 17.10. KeepLocked will be the default option after removing this one.
      • Fields inherited from class com.aspose.ms.System.Enum

        EnumSeparatorCharArray
    • Method Summary

      • Methods inherited from class com.aspose.ms.System.Enum

        Clone, CloneTo, format, format, get_Caption, get_Value, getName, getName, getNames, getNames, getUnderlyingType, getUnderlyingType, getValue, getValues, isDefined, isDefined, isDefined, isDefined, parse, parse, parse, parse, register, toObject, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait