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

    Contains static members that specify ZIP file processing security policy.

    Properties

    Name Description
    GlobalOptions static Gets global secure zip policy options.

    Methods

    Name Description
    AllowEncryptedEntries() static Enables the processing of encrypted entries in ZIP files.
    AllowOverwrite() static Allows overwriting existing files when extracting a zip 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.
    SetCompressionLimits(Nullable<Double>, Nullable<Double>) static Sets the maximum allowed compression ratio for individual files and the entire archive when extracting zip archives.
    SetCountAndDepthLimits(Nullable<Int32>, Nullable<Int32>) static Sets the maximum allowed number of entries and the maximum depth of the directory structure when extracting zip archives.
    SetEncryptionPolicy(SecureZipPolicy.EncryptionPolicy) static Sets the encryption policy for zip archive extraction.
    SetSizeLimits(Nullable<Int64>, Nullable<Int64>) static Sets the maximum allowed sizes for individual entries and the total size of all entries when extracting zip archives.
    ToString() Returns a string that represents the current object. Inherited from Object.

    Events

    Name Description
    ResourceLimitViolation static Occurs when a zip archive in the process of extraction exceeds resource limits defined in the secure zip policy.
    TrustBoundaryViolation static Occurs when a zip archive in the process of extraction contains entries that violate the trust boundary defined in the secure zip policy.
    See Also