Skip to main content
All docs
V26.1
  • SecureZipPolicy.Options.CreateSnapshot(SecureZipPolicy.ResourceLimits, Boolean) Method

    Creates an immutable copy of the options with specified resource limits. Captures the current global encryption policy so that subsequent SetEncryptionPolicy calls do not affect an already-opened archive.

    Namespace: DevExpress.Utils.Zip

    Assembly: DevExpress.Data.v26.1.dll

    Declaration

    public SecureZipPolicy.Options CreateSnapshot(
        SecureZipPolicy.ResourceLimits resourceLimits,
        bool contextAllowsEncryption = false
    )

    Parameters

    Name Type Description
    resourceLimits SecureZipPolicy.ResourceLimits

    Resource limits available for use in the snapshot. If null, current limits are used.

    Optional Parameters

    Name Type Default Description
    contextAllowsEncryption Boolean False

    true if the context (parser/archive) allows encryption, otherwise, false.

    Returns

    Type Description
    SecureZipPolicy.Options

    An immutable snapshot of options with specified resource limits.

    See Also