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