# ArchiveOperationBudget

Thread-safe cumulative budget shared explicitly by related archive operations. Pass CreateNested() to a child container.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`063fe3ee9839` with working tree changes

**Source**

[ArchiveOperationBudget.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Archives/ArchiveOperationBudget.cs#L10)

**Modifiers**

sealed

Thread-safe cumulative budget shared explicitly by related archive operations. Pass CreateNested() to a child container. Reservations are never refunded; this bounds cumulative work, not live retained memory. Reusing this object deliberately continues the same operation.

## Inheritance

- object
- ArchiveOperationBudget

## Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 6

- Property [ArchiveExtractionOptions.OperationBudget](/api/archives/officeimo-archives-archiveextractionoptions/#property-operationbudget)
- Property [ArchiveInspection.OperationBudget](/api/archives/officeimo-archives-archiveinspection/#property-operationbudget)
- Property [ArchiveInspectionOptions.OperationBudget](/api/archives/officeimo-archives-archiveinspectionoptions/#property-operationbudget)
- Method [ArchiveOperationBudget.CreateNested](/api/archives/officeimo-archives-archiveoperationbudget/#method-createnested)
- Property [ArchiveReadOptions.OperationBudget](/api/archives/officeimo-archives-archivereadoptions/#property-operationbudget)
- Property [ArchiveTraversalOptions.OperationBudget](/api/archives/officeimo-archives-archivetraversaloptions/#property-operationbudget)

Filter members 

Show inherited

## Constructors

`public ArchiveOperationBudget(ArchiveOperationLimits? limits = null)` [#](#constructor-ctor-officeimo-archives-archiveoperationlimits)

[ArchiveOperationBudget.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Archives/ArchiveOperationBudget.cs#L10)

Creates a root budget and snapshots its nonnegative limits.

Parameters

**limits OfficeIMO.Archives.ArchiveOperationLimits? = null optional**

## Methods

`public ArchiveOperationBudget CreateNested()` [#](#method-createnested)

[ArchiveOperationBudget.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Archives/ArchiveOperationBudget.cs#L13)

Returns a child view sharing all counters. Child input admission enforces the depth limit.

Returns

`ArchiveOperationBudget`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public ArchiveResourceUsage Usage { get; }` [#](#property-usage)

[ArchiveOperationBudget.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/063fe3ee9839db87940fc9ed8ae72f1f44b10982/OfficeIMO.Archives/ArchiveOperationBudget.cs#L15)

Returns a detached snapshot of the entire tree's charges.

<!-- PowerForge markdown artifact sha256:E653678F1B8BE04B6D755D7914DB0A05C7BE7E0DFAA5D8F2D3156BFF927838D0 -->
