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 |
| maxTotalCompressionRatio | Nullable<Double> | The maximum allowed cumulative ratio between total uncompressed and total compressed sizes across the entire archive. Pass |
Returns
| Type | Description |
|---|---|
| SecureZipPolicy.ResourceLimits | A new |
See Also