# ReaderDetectionOptions

Bounds and policy for content detection.

Class 

`OfficeIMO.Reader`

**Namespace**

`OfficeIMO.Reader`

**Assembly**

`OfficeIMO.Reader.Core`

**Source revision**

`87dcb6f3ed19` with working tree changes

**Source**

[ReaderDetectionModels.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L41)

**Modifiers**

sealed

Bounds and policy for content detection.

## Inheritance

- object
- ReaderDetectionOptions

## Usage

Explore 2 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.

### Accepted by parameters 2

- Method [OfficeDocumentReader.Detect](/api/reader/officeimo-reader-officedocumentreader/#method-detect-string-officeimo-reader-readerdetectionoptions) parameter `options`
- Method [OfficeDocumentReader.DetectAsync](/api/reader/officeimo-reader-officedocumentreader/#method-detectasync-string-officeimo-reader-readerdetectionoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

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

[ReaderDetectionModels.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L41)

## 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 ReaderDetectionMode Mode { get; set; }` [#](#property-mode)

[ReaderDetectionModels.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L41)

Detection policy. Standalone detection defaults to [ReaderDetectionMode.PreferContent](/api/reader/officeimo-reader-readerdetectionmode/).

`public int MaxProbeBytes { get; set; }` [#](#property-maxprobebytes)

[ReaderDetectionModels.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L46)

Maximum prefix bytes inspected for signatures and text markers. Default: 64 KiB.

`public int MaxContainerEntries { get; set; }` [#](#property-maxcontainerentries)

[ReaderDetectionModels.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L51)

Maximum archive entries inspected while classifying ZIP-based formats. Default: 512.

`public bool InspectContainers { get; set; }` [#](#property-inspectcontainers)

[ReaderDetectionModels.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/87dcb6f3ed19da9271276dab6af02fede12f2fbb/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L56)

When true, inspect seekable ZIP containers for Office, Visio, and EPUB package markers. Default: true.

<!-- PowerForge markdown artifact sha256:5A2188FE3BE7F7122D95B963C34859E73492FC6EF3717A0BB3EC7B6176A57D5F -->
