Skip to main content
All docs
V26.1
  • SecureZipPolicy.SetSizeLimits(Nullable<Int64>, Nullable<Int64>) Method

    Sets the maximum allowed sizes for individual entries and the total size of all entries when extracting zip archives.

    Namespace: DevExpress.Utils.Zip

    Assembly: DevExpress.Data.v26.1.dll

    Declaration

    public static void SetSizeLimits(
        long? maxEntryBytes,
        long? maxTotalBytes
    )

    Parameters

    Name Type Description
    maxEntryBytes Nullable<Int64>

    The maximum allowed size in bytes for individual entries in the zip archive. If the size of an entry exceeds this limit during extraction, the ResourceLimitViolation event is raised.

    maxTotalBytes Nullable<Int64>

    The maximum allowed total size in bytes for all entries in the zip archive. If the total size of all entries exceeds this limit during extraction, the ResourceLimitViolation event is raised.

    See Also