# OfficeContentSafetyOptions

Bounds concealment and indirect prompt-injection inspection.

Class 

`OfficeIMO.ContentSafety`

**Namespace**

`OfficeIMO.ContentSafety`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeContentSafetyContracts.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L58)

**Modifiers**

sealed

Bounds concealment and indirect prompt-injection inspection.

## Inheritance

- object
- OfficeContentSafetyOptions

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

- Property [OfficeContentCleanupOptions.Inspection](/api/core/officeimo-contentsafety-officecontentcleanupoptions/#property-inspection)

### Accepted by parameters 1

- Method [OfficeSvgDrawingReader.InspectContentSafety](/api/core/officeimo-drawing-officesvgdrawingreader/#method-inspectcontentsafety-byte-officeimo-contentsafety-officecontentsafetyoptions-officeimo-drawing-officesvgdrawingreaderoptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

[OfficeContentSafetyContracts.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L58)

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

[OfficeContentSafetyContracts.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L58)

Maximum encoded input bytes accepted before a parser or package loader runs. Defaults to 256 MiB.

`public int MaxPackageEntries { get; set; }` [#](#property-maxpackageentries)

[OfficeContentSafetyContracts.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L60)

Maximum ZIP package entries accepted during package preflight. Defaults to 16,384.

`public long MaxExpandedPackageBytes { get; set; }` [#](#property-maxexpandedpackagebytes)

[OfficeContentSafetyContracts.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L62)

Maximum declared uncompressed bytes accepted across a ZIP package. Defaults to 512 MiB.

`public int MaxCharacters { get; set; }` [#](#property-maxcharacters)

[OfficeContentSafetyContracts.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L64)

Maximum decoded characters inspected across the asset. Defaults to 16 million.

`public int MaxFindings { get; set; }` [#](#property-maxfindings)

[OfficeContentSafetyContracts.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L66)

Maximum findings returned. Defaults to 4,096.

`public int MaxPreviewCharacters { get; set; }` [#](#property-maxpreviewcharacters)

[OfficeContentSafetyContracts.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L68)

Maximum characters retained in a finding preview. Defaults to 240.

`public OfficeLength MaximumTinyFontSize { get; set; }` [#](#property-maximumtinyfontsize)

[OfficeContentSafetyContracts.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L70)

Font sizes at or below this value are treated as effectively concealed. Defaults to two points.

`public double MinimumVisibleContrastRatio { get; set; }` [#](#property-minimumvisiblecontrastratio)

[OfficeContentSafetyContracts.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L72)

Contrast ratios below this value are reported. Defaults to 1.25.

`public bool IncludeNonPrimaryContent { get; set; }` [#](#property-includenonprimarycontent)

[OfficeContentSafetyContracts.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L74)

Whether notes, comments, metadata, alternative text, and other non-primary stories are reported.

`public bool DetectInstructionLikeText { get; set; }` [#](#property-detectinstructionliketext)

[OfficeContentSafetyContracts.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L76)

Whether concealed text is checked for bounded instruction-like language.

`public bool IncludeTextIntegrityEvidence { get; set; }` [#](#property-includetextintegrityevidence)

[OfficeContentSafetyContracts.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/ContentSafety/OfficeContentSafetyContracts.cs#L78)

Whether exact Unicode text-integrity evidence is included. Defaults to true.

<!-- PowerForge markdown artifact sha256:2E88D4C7943DE4C6075F0B9764D332AF459705194E1D5070780203C577DA41BC -->
