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

    Sets the maximum allowed number of entries and the maximum depth of the directory structure when extracting zip archives.

    Namespace: DevExpress.Utils.Zip

    Assembly: DevExpress.Data.v26.1.dll

    Declaration

    public static void SetCountAndDepthLimits(
        int? maxEntryCount,
        int? maxDepth
    )

    Parameters

    Name Type Description
    maxEntryCount Nullable<Int32>

    The maximum allowed number of entries in the zip archive. If the number of entries exceeds this limit during extraction, the ResourceLimitViolation event is raised.

    maxDepth Nullable<Int32>

    The maximum allowed depth of the directory structure in the zip archive. If the depth exceeds this limit during extraction, the ResourceLimitViolation event is raised.

    See Also