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

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

    Namespace: DevExpress.Utils.Zip

    Assembly: DevExpress.Data.v26.1.dll

    Declaration

    public SecureZipPolicy.ResourceLimits WithCompression(
        double? maxCompressionRatio,
        double? maxTotalCompressionRatio
    )

    Parameters

    Name Type Description
    maxCompressionRatio Nullable<Double>

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

    maxTotalCompressionRatio Nullable<Double>

    The maximum allowed cumulative ratio between total uncompressed to 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