# DocumentLoadOptions

Common lifecycle policy for a loaded document.

Class 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[DocumentLifecycle.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/DocumentLifecycle.cs#L28)

**Base**

`DocumentCreateOptions`

Common lifecycle policy for a loaded document.

## Inheritance

- [DocumentCreateOptions](/api/core/officeimo-documentcreateoptions/)
- DocumentLoadOptions

Filter members 

Show inherited

## Constructors

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

[DocumentLifecycle.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/DocumentLifecycle.cs#L28)

## 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 DocumentAccessMode AccessMode { get; set; }` [#](#property-accessmode)

[DocumentLifecycle.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/DocumentLifecycle.cs#L28)

Controls whether the loaded document may be modified.

`public OfficePackageSecurityOptions? PackageSecurity { get; set; }` [#](#property-packagesecurity)

[DocumentLifecycle.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/DocumentLifecycle.cs#L34)

Provides optional package resource limits and active-content policies. When omitted, loading retains the historical compatibility behavior.

`public bool CaptureSourcePackageSecurity { get; set; }` [#](#property-capturesourcepackagesecurity)

[DocumentLifecycle.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/DocumentLifecycle.cs#L37)

Captures same-source structural package observations in Word, Excel and PowerPoint loaders without executing content. Other format owners may expose their native inspection separately.

## Inherited Properties

`public DocumentPersistenceMode PersistenceMode { get; set; }` [#](#property-persistencemode)

[DocumentLifecycle.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/DocumentLifecycle.cs#L22)

Inherited from [DocumentCreateOptions](/api/core/officeimo-documentcreateoptions/)

<!-- PowerForge markdown artifact sha256:5292B906B50AA3D021F8F51B3EA220AB9773EEFCE995E8E67180D47195385EC7 -->
