Skip to main content
All docs
V26.1
  • SecureZipPolicy.ResourceLimits.Compression(Nullable<Double>, Nullable<Double>) Method

    Creates a new ResourceLimits instance with specified compression ratio limits, inheriting other values from current global limits.

    Namespace: DevExpress.Utils.Zip

    Assembly: DevExpress.Data.v26.1.dll

    Declaration

    public static SecureZipPolicy.ResourceLimits Compression(
        double? maxCompressionRatio,
        double? maxTotalCompressionRatio
    )

    Parameters

    Name Type Description
    maxCompressionRatio Nullable<Double>

    The maximum allowed ratio between uncompressed and compressed sizes for a single entry. Pass null to keep the current value.

    maxTotalCompressionRatio Nullable<Double>

    The maximum allowed cumulative ratio between total uncompressed and total compressed sizes across the entire archive. Pass null to keep the current value.

    Returns

    Type Description
    SecureZipPolicy.ResourceLimits

    A new ResourceLimits instance with specified compression ratio limits.

    See Also