# ReaderDetectionResult

Structured extension and content detection result.

Class 

`OfficeIMO.Reader`

**Namespace**

`OfficeIMO.Reader`

**Assembly**

`OfficeIMO.Reader.Core`

**Source revision**

`90fbca630045` with working tree changes

**Source**

[ReaderDetectionModels.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L64)

**Modifiers**

sealed

Structured extension and content detection result.

## Inheritance

- object
- ReaderDetectionResult

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Reader and Extraction](/docs/reader/) Guide
  
  Deterministic document extraction, rich results, structured records, RAG chunking, and optional OCR with OfficeIMO.Reader.

## 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.

### Returned or exposed by 2

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

Filter members 

Show inherited

## Constructors

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

[ReaderDetectionModels.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L64)

## 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 string SourceName { get; set; }` [#](#property-sourcename)

[ReaderDetectionModels.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L64)

Source name or path used for extension evidence.

`public string Extension { get; set; }` [#](#property-extension)

[ReaderDetectionModels.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L67)

Normalized source extension, or an empty string.

`public ReaderInputKind ExtensionKind { get; set; }` [#](#property-extensionkind)

[ReaderDetectionModels.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L70)

Kind inferred from the extension and active handler registry.

`public ReaderInputKind ContentKind { get; set; }` [#](#property-contentkind)

[ReaderDetectionModels.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L73)

Kind inferred from content.

`public ReaderDetectionConfidence ExtensionConfidence { get; set; }` [#](#property-extensionconfidence)

[ReaderDetectionModels.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L76)

Confidence in extension evidence.

`public ReaderDetectionConfidence ContentConfidence { get; set; }` [#](#property-contentconfidence)

[ReaderDetectionModels.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L79)

Confidence in content evidence.

`public ReaderInputKind Kind { get; set; }` [#](#property-kind)

[ReaderDetectionModels.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L82)

Effective kind selected by the requested detection mode.

`public ReaderDetectionConfidence Confidence { get; set; }` [#](#property-confidence)

[ReaderDetectionModels.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L85)

Confidence in the effective kind.

`public string? MediaType { get; set; }` [#](#property-mediatype)

[ReaderDetectionModels.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L88)

Detected media type when known.

`public bool ContentInspected { get; set; }` [#](#property-contentinspected)

[ReaderDetectionModels.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L91)

True when content bytes were inspected.

`public bool ContainerInspected { get; set; }` [#](#property-containerinspected)

[ReaderDetectionModels.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L94)

True when a ZIP container was structurally inspected.

`public int InspectedBytes { get; set; }` [#](#property-inspectedbytes)

[ReaderDetectionModels.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L97)

Number of prefix bytes inspected.

`public bool IsEncrypted { get; set; }` [#](#property-isencrypted)

[ReaderDetectionModels.cs:110](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L110)

True when bounded content inspection found encryption that requires a password or key before the content can be read: an encrypted Office package, an OpenDocument package whose manifest declares encrypted entries, a PDF with an encryption dictionary, a ZIP archive with encrypted entries, or a legacy Word, Excel or PowerPoint file that marks itself encrypted. The file is not opened or decrypted. False means detection saw no encryption, not that the input is known to be unencrypted.

`public IReadOnlyList<string> Evidence { get; set; }` [#](#property-evidence)

[ReaderDetectionModels.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L113)

Stable evidence tokens explaining the result.

`public bool IsMismatch { get; }` [#](#property-ismismatch)

[ReaderDetectionModels.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.Reader.Core/ReaderDetectionModels.cs#L119)

True when medium- or high-confidence content evidence disagrees with a known extension kind.

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