# OfficeLegacyImportLimits

Hard resource limits shared by managed legacy importers.

Class 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeLegacyImportContracts.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L32)

**Modifiers**

sealed

Hard resource limits shared by managed legacy importers.

## Inheritance

- object
- OfficeLegacyImportLimits

## Usage

Explore 1 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 1

- Method [OfficeLegacyImportLimits.Clone](/api/core/officeimo-officelegacyimportlimits/#method-clone)

Filter members 

Show inherited

## Constructors

`public OfficeLegacyImportLimits()` [#](#constructor-ctor)

[OfficeLegacyImportContracts.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L32)

## Methods

`public OfficeLegacyImportLimits Clone()` [#](#method-clone)

[OfficeLegacyImportContracts.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L53)

Creates an independent copy of these limits.

Returns

`OfficeLegacyImportLimits`

`public void Validate()` [#](#method-validate)

[OfficeLegacyImportContracts.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L65)

Throws when a configured limit is outside the supported positive range.

## 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 int MaxInputBytes { get; set; }` [#](#property-maxinputbytes)

[OfficeLegacyImportContracts.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L32)

Gets or sets the maximum source size in bytes.

`public int MaxTextCharacters { get; set; }` [#](#property-maxtextcharacters)

[OfficeLegacyImportContracts.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L35)

Gets or sets the maximum number of recovered text characters.

`public int MaxRecords { get; set; }` [#](#property-maxrecords)

[OfficeLegacyImportContracts.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L38)

Gets or sets the maximum number of logical records inspected.

`public int MaxItems { get; set; }` [#](#property-maxitems)

[OfficeLegacyImportContracts.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L41)

Gets or sets the maximum number of recovered document blocks or spreadsheet cells.

`public int MaxCompoundStreams { get; set; }` [#](#property-maxcompoundstreams)

[OfficeLegacyImportContracts.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L44)

Gets or sets the maximum number of compound-document streams inspected.

`public int MaxResourceBytes { get; set; }` [#](#property-maxresourcebytes)

[OfficeLegacyImportContracts.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L47)

Gets or sets the total source and projected image bytes processed by profiles that recover graphics.

`public int MaxImagePixels { get; set; }` [#](#property-maximagepixels)

[OfficeLegacyImportContracts.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Legacy/OfficeLegacyImportContracts.cs#L50)

Gets or sets the total raster pixels generated by profiles that recover graphics.

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