Skip to main content
All docs
V26.1
  • SecureZipPolicy.Options Members

    Contains configurable behavior options for the secure ZIP policy.

    Properties

    Name Description
    AllowEncryptedEntries Gets whether encrypted entries are allowed.
    AllowOverwrite Gets whether overwriting an existing file is permitted during extraction.
    EncryptionPolicy Gets the effective encryption policy; this resolves Default to FipsStrict or ReadLegacyOnly based on the OS FIPS setting.
    Limits Gets resource limits associated with options.

    Methods

    Name Description
    CreateSnapshot(SecureZipPolicy.ResourceLimits, Boolean) 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.
    CreateSnapshot(Boolean) Creates an immutable copy of the options. Captures the current global encryption policy so that subsequent SetEncryptionPolicy calls do not affect an already-opened archive.
    Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
    Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
    GetHashCode() Serves as the default hash function. Inherited from Object.
    GetType() Gets the Type of the current instance. Inherited from Object.
    MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
    ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
    ToString() Returns a string that represents the current object. Inherited from Object.
    With(SecureZipPolicy.ResourceLimits) Returns a new Options instance with the specified resource limits.
    With(Nullable<Boolean>, Nullable<Boolean>) Returns a new Options instance with specified encryption and overwrite settings.
    WithCompressionLimits(Nullable<Double>, Nullable<Double>) Returns a new Options instance with specified compression ratio limits.
    WithCountAndDepthLimits(Nullable<Int32>, Nullable<Int32>) Returns a new Options instance with specified entry count and depth limits.
    WithEncryptionPolicy(SecureZipPolicy.EncryptionPolicy) Returns a new Options instance with the specified encryption policy.
    WithSizeLimits(Nullable<Int64>, Nullable<Int64>) Returns a new Options instance with specified size limits.
    See Also