# ExcelLoadOptionsFluent

The fluent methods of ExcelLoadOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelLoadOptions](/api/excel/officeimo-excel-excelloadoptions/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- ExcelLoadOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelLoadOptions AccessMode(ExcelLoadOptions excelLoadOptions, DocumentAccessMode value)` [#](#method-accessmode-officeimo-excel-excelloadoptions-officeimo-documentaccessmode)

Sets DocumentLoadOptions.AccessMode.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value OfficeIMO.DocumentAccessMode required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { AccessMode = value };    excelLoadOptions.AccessMode(value);
```

`public static ExcelLoadOptions AllowBinaryProjection(ExcelLoadOptions excelLoadOptions, bool value = true)` [#](#method-allowbinaryprojection-officeimo-excel-excelloadoptions-boolean)

Sets [ExcelLoadOptions.AllowBinaryProjection](/api/excel/officeimo-excel-excelloadoptions/): Allows native XLS and XLSB projection into an XML workbook model. Default: true. False rejects those source families before secondary payload projection, including mislabeled input.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { AllowBinaryProjection = value };    excelLoadOptions.AllowBinaryProjection(value);
```

`public static ExcelLoadOptions AllowedContentType(ExcelLoadOptions excelLoadOptions, string item)` [#](#method-allowedcontenttype-officeimo-excel-excelloadoptions-string)

Adds an item to [ExcelLoadOptions.AllowedContentTypes](/api/excel/officeimo-excel-excelloadoptions/): Gets the accepted media types used when [ExcelLoadOptions.ValidateContentTypeWhenPresent](/api/excel/officeimo-excel-excelloadoptions/) is enabled.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**item string required**

The item.

Returns

`ExcelLoadOptions` The same instance.

`public static ExcelLoadOptions AllowedContentTypes(ExcelLoadOptions excelLoadOptions, IEnumerable<string> items)` [#](#method-allowedcontenttypes-officeimo-excel-excelloadoptions-collections-generic-ienumerable-system-string)

Adds items to [ExcelLoadOptions.AllowedContentTypes](/api/excel/officeimo-excel-excelloadoptions/): Gets the accepted media types used when [ExcelLoadOptions.ValidateContentTypeWhenPresent](/api/excel/officeimo-excel-excelloadoptions/) is enabled.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**items System.Collections.Generic.IEnumerable<string> required**

The items, in order.

Returns

`ExcelLoadOptions` The same instance.

`public static ExcelLoadOptions AllowedHost(ExcelLoadOptions excelLoadOptions, string item)` [#](#method-allowedhost-officeimo-excel-excelloadoptions-string)

Adds an item to [ExcelLoadOptions.AllowedHosts](/api/excel/officeimo-excel-excelloadoptions/): Gets allowed remote workbook host names. When empty, any host is allowed. Entries are host names only; schemes, paths, and ports are not accepted.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**item string required**

The item.

Returns

`ExcelLoadOptions` The same instance.

`public static ExcelLoadOptions AllowedHosts(ExcelLoadOptions excelLoadOptions, IEnumerable<string> items)` [#](#method-allowedhosts-officeimo-excel-excelloadoptions-collections-generic-ienumerable-system-string)

Adds items to [ExcelLoadOptions.AllowedHosts](/api/excel/officeimo-excel-excelloadoptions/): Gets allowed remote workbook host names. When empty, any host is allowed. Entries are host names only; schemes, paths, and ports are not accepted.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**items System.Collections.Generic.IEnumerable<string> required**

The items, in order.

Returns

`ExcelLoadOptions` The same instance.

`public static ExcelLoadOptions AllowPrivateNetworkAddresses(ExcelLoadOptions excelLoadOptions, bool value = true)` [#](#method-allowprivatenetworkaddresses-officeimo-excel-excelloadoptions-boolean)

Sets [ExcelLoadOptions.AllowPrivateNetworkAddresses](/api/excel/officeimo-excel-excelloadoptions/): Gets or sets whether a remote workbook may be loaded from a loopback, private, link-local or other non-public network address. Default: false. Enable it only for trusted internal sources.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { AllowPrivateNetworkAddresses = value };    excelLoadOptions.AllowPrivateNetworkAddresses(value);
```

`public static ExcelLoadOptions CaptureSourcePackageSecurity(ExcelLoadOptions excelLoadOptions, bool value = true)` [#](#method-capturesourcepackagesecurity-officeimo-excel-excelloadoptions-boolean)

Sets DocumentLoadOptions.CaptureSourcePackageSecurity.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { CaptureSourcePackageSecurity = value };    excelLoadOptions.CaptureSourcePackageSecurity(value);
```

`public static ExcelLoadOptions FileBacked(ExcelLoadOptions excelLoadOptions, bool value = true)` [#](#method-filebacked-officeimo-excel-excelloadoptions-boolean)

Sets [ExcelLoadOptions.FileBacked](/api/excel/officeimo-excel-excelloadoptions/): Stages an Open XML workbook in a bounded temporary file instead of memory.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { FileBacked = value };    excelLoadOptions.FileBacked(value);
```

`public static ExcelLoadOptions MaxBytes(ExcelLoadOptions excelLoadOptions, long value)` [#](#method-maxbytes-officeimo-excel-excelloadoptions-int64)

Sets [ExcelLoadOptions.MaxBytes](/api/excel/officeimo-excel-excelloadoptions/): Gets or sets the maximum number of response bytes that may be downloaded.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxBytes = value };    excelLoadOptions.MaxBytes(value);
```

`public static ExcelLoadOptions MaxCells(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxcells-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxCells](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the maximum number of populated cells projected from one workbook.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxCells = value };    excelLoadOptions.MaxCells(value);
```

`public static ExcelLoadOptions MaxDecodedImageBytes(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxdecodedimagebytes-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxDecodedImageBytes](/api/excel/officeimo-excel-excelloadoptions/): Maximum aggregate decoded legacy picture bytes.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxDecodedImageBytes = value };    excelLoadOptions.MaxDecodedImageBytes(value);
```

`public static ExcelLoadOptions MaxHyperlinks(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxhyperlinks-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxHyperlinks](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the maximum number of worksheet hyperlinks accepted from one workbook.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxHyperlinks = value };    excelLoadOptions.MaxHyperlinks(value);
```

`public static ExcelLoadOptions MaxInputBytes(ExcelLoadOptions excelLoadOptions, long? value)` [#](#method-maxinputbytes-officeimo-excel-excelloadoptions-nullable-system-int64)

Sets [ExcelLoadOptions.MaxInputBytes](/api/excel/officeimo-excel-excelloadoptions/): Maximum workbook bytes buffered by load APIs. Default: 512 MiB. Set to null to disable this compatibility guard.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value long? required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxInputBytes = value };    excelLoadOptions.MaxInputBytes(value);
```

`public static ExcelLoadOptions MaxLegacyInputBytes(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxlegacyinputbytes-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxLegacyInputBytes](/api/excel/officeimo-excel-excelloadoptions/): Maximum binary XLS input bytes admitted by the native decoder.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxLegacyInputBytes = value };    excelLoadOptions.MaxLegacyInputBytes(value);
```

`public static ExcelLoadOptions MaxLogicalRows(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxlogicalrows-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxLogicalRows](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the maximum logical rows emitted across one workbook data-reader operation.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxLogicalRows = value };    excelLoadOptions.MaxLogicalRows(value);
```

`public static ExcelLoadOptions MaxMergedRanges(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxmergedranges-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxMergedRanges](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the maximum number of merged ranges accepted from one workbook.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxMergedRanges = value };    excelLoadOptions.MaxMergedRanges(value);
```

`public static ExcelLoadOptions MaxPackageBytes(ExcelLoadOptions excelLoadOptions, long value)` [#](#method-maxpackagebytes-officeimo-excel-excelloadoptions-int64)

Sets [ExcelLoadOptions.MaxPackageBytes](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the aggregate decompressed package budget. The default is 512 MiB.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxPackageBytes = value };    excelLoadOptions.MaxPackageBytes(value);
```

`public static ExcelLoadOptions MaxPartBytes(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxpartbytes-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxPartBytes](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the largest accepted decompressed package part. The default is 128 MiB.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxPartBytes = value };    excelLoadOptions.MaxPartBytes(value);
```

`public static ExcelLoadOptions MaxRecordBytes(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxrecordbytes-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxRecordBytes](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the largest accepted BIFF12 record payload. The default is 64 MiB.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRecordBytes = value };    excelLoadOptions.MaxRecordBytes(value);
```

`public static ExcelLoadOptions MaxRecordCount(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxrecordcount-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxRecordCount](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the aggregate BIFF12 record limit across one workbook import. The default is 8,000,000.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRecordCount = value };    excelLoadOptions.MaxRecordCount(value);
```

`public static ExcelLoadOptions MaxRelatedParts(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxrelatedparts-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxRelatedParts](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the largest chart/VBA related-part graph projected from one workbook.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRelatedParts = value };    excelLoadOptions.MaxRelatedParts(value);
```

`public static ExcelLoadOptions MaxRelationshipDepth(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxrelationshipdepth-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxRelationshipDepth](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the largest relationship depth projected from chart and VBA carriers.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRelationshipDepth = value };    excelLoadOptions.MaxRelationshipDepth(value);
```

`public static ExcelLoadOptions MaxRowDefinitions(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxrowdefinitions-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxRowDefinitions](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the maximum number of row metadata definitions projected from one workbook.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRowDefinitions = value };    excelLoadOptions.MaxRowDefinitions(value);
```

`public static ExcelLoadOptions MaxSharedStringCharacters(ExcelLoadOptions excelLoadOptions, long value)` [#](#method-maxsharedstringcharacters-officeimo-excel-excelloadoptions-int64)

Sets [ExcelLoadOptions.MaxSharedStringCharacters](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the aggregate UTF-16 character budget for the shared-string table.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxSharedStringCharacters = value };    excelLoadOptions.MaxSharedStringCharacters(value);
```

`public static ExcelLoadOptions MaxSharedStringItemCharacters(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxsharedstringitemcharacters-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxSharedStringItemCharacters](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the maximum UTF-16 character length of one shared-string item.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                              // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxSharedStringItemCharacters = value };    excelLoadOptions.MaxSharedStringItemCharacters(value);
```

`public static ExcelLoadOptions MaxSharedStrings(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxsharedstrings-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxSharedStrings](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the maximum number of shared-string items accepted.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxSharedStrings = value };    excelLoadOptions.MaxSharedStrings(value);
```

`public static ExcelLoadOptions MaxStringCharacters(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxstringcharacters-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxStringCharacters](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the maximum number of UTF-16 characters accepted in one BIFF12 string.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxStringCharacters = value };    excelLoadOptions.MaxStringCharacters(value);
```

`public static ExcelLoadOptions MaxWorksheets(ExcelLoadOptions excelLoadOptions, int value)` [#](#method-maxworksheets-officeimo-excel-excelloadoptions-int32)

Sets [ExcelLoadOptions.MaxWorksheets](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls the maximum number of worksheets accepted from one workbook.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxWorksheets = value };    excelLoadOptions.MaxWorksheets(value);
```

OpenSettings 2 overloads

`public static ExcelLoadOptions OpenSettings(ExcelLoadOptions excelLoadOptions, OfficeOpenXmlLoadSettings? value)` [#](#method-opensettings-officeimo-excel-excelloadoptions-officeimo-officeopenxmlloadsettings)

Sets [ExcelLoadOptions.OpenSettings](/api/excel/officeimo-excel-excelloadoptions/): Provides optional low-level Open XML package settings.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value OfficeIMO.OfficeOpenXmlLoadSettings? required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { OpenSettings = value };    excelLoadOptions.OpenSettings(value);
```

`public static ExcelLoadOptions OpenSettings(ExcelLoadOptions excelLoadOptions, Action<OfficeOpenXmlLoadSettings> configure)` [#](#method-opensettings-officeimo-excel-excelloadoptions-action-officeimo-officeopenxmlloadsettings)

Configures [ExcelLoadOptions.OpenSettings](/api/excel/officeimo-excel-excelloadoptions/) in place (creating it when not set): Provides optional low-level Open XML package settings.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**configure System.Action<OfficeIMO.OfficeOpenXmlLoadSettings> required**

Configures the value.

Returns

`ExcelLoadOptions` The same instance.

PackageSecurity 2 overloads

`public static ExcelLoadOptions PackageSecurity(ExcelLoadOptions excelLoadOptions, OfficePackageSecurityOptions? value)` [#](#method-packagesecurity-officeimo-excel-excelloadoptions-officeimo-officepackagesecurityoptions)

Sets DocumentLoadOptions.PackageSecurity.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value OfficeIMO.OfficePackageSecurityOptions? required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { PackageSecurity = value };    excelLoadOptions.PackageSecurity(value);
```

`public static ExcelLoadOptions PackageSecurity(ExcelLoadOptions excelLoadOptions, Action<OfficePackageSecurityOptions> configure)` [#](#method-packagesecurity-officeimo-excel-excelloadoptions-action-officeimo-officepackagesecurityoptions)

Configures DocumentLoadOptions.PackageSecurity in place (creating it when not set).

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**configure System.Action<OfficeIMO.OfficePackageSecurityOptions> required**

Configures the value.

Returns

`ExcelLoadOptions` The same instance.

`public static ExcelLoadOptions Password(ExcelLoadOptions excelLoadOptions, string? value)` [#](#method-password-officeimo-excel-excelloadoptions-string)

Sets [ExcelLoadOptions.Password](/api/excel/officeimo-excel-excelloadoptions/): Password for an encrypted workbook source.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { Password = value };    excelLoadOptions.Password(value);
```

`public static ExcelLoadOptions PersistenceMode(ExcelLoadOptions excelLoadOptions, DocumentPersistenceMode value)` [#](#method-persistencemode-officeimo-excel-excelloadoptions-officeimo-documentpersistencemode)

Sets DocumentCreateOptions.PersistenceMode.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value OfficeIMO.DocumentPersistenceMode required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { PersistenceMode = value };    excelLoadOptions.PersistenceMode(value);
```

`public static ExcelLoadOptions PreserveExternalWorkbookLinks(ExcelLoadOptions excelLoadOptions, bool value = true)` [#](#method-preserveexternalworkbooklinks-officeimo-excel-excelloadoptions-boolean)

Sets [ExcelLoadOptions.PreserveExternalWorkbookLinks](/api/excel/officeimo-excel-excelloadoptions/): Retains active external-workbook links in legacy projections. The default keeps them inert.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                              // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { PreserveExternalWorkbookLinks = value };    excelLoadOptions.PreserveExternalWorkbookLinks(value);
```

`public static ExcelLoadOptions Progress(ExcelLoadOptions excelLoadOptions, IProgress<ExcelHttpLoadProgress>? value)` [#](#method-progress-officeimo-excel-excelloadoptions-iprogress-officeimo-excel-excelhttploadprogress)

Sets [ExcelLoadOptions.Progress](/api/excel/officeimo-excel-excelloadoptions/): Gets or sets an optional progress sink invoked as response bytes are copied.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value System.IProgress<OfficeIMO.Excel.ExcelHttpLoadProgress>? required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { Progress = value };    excelLoadOptions.Progress(value);
```

`public static ExcelLoadOptions ReportPreservedRecords(ExcelLoadOptions excelLoadOptions, bool value = true)` [#](#method-reportpreservedrecords-officeimo-excel-excelloadoptions-boolean)

Sets [ExcelLoadOptions.ReportPreservedRecords](/api/excel/officeimo-excel-excelloadoptions/): For XLSB sources, controls whether unknown records are listed in the import preservation report.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { ReportPreservedRecords = value };    excelLoadOptions.ReportPreservedRecords(value);
```

`public static ExcelLoadOptions ReportUnsupportedContent(ExcelLoadOptions excelLoadOptions, bool value = true)` [#](#method-reportunsupportedcontent-officeimo-excel-excelloadoptions-boolean)

Sets [ExcelLoadOptions.ReportUnsupportedContent](/api/excel/officeimo-excel-excelloadoptions/): Reports recognized unsupported legacy workbook features.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { ReportUnsupportedContent = value };    excelLoadOptions.ReportUnsupportedContent(value);
```

`public static ExcelLoadOptions SchemePolicy(ExcelLoadOptions excelLoadOptions, ExcelUriSchemePolicy value)` [#](#method-schemepolicy-officeimo-excel-excelloadoptions-officeimo-excel-excelurischemepolicy)

Sets [ExcelLoadOptions.SchemePolicy](/api/excel/officeimo-excel-excelloadoptions/): Gets or sets the allowed URI schemes. Defaults to HTTPS only.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value OfficeIMO.Excel.ExcelUriSchemePolicy required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { SchemePolicy = value };    excelLoadOptions.SchemePolicy(value);
```

`public static ExcelLoadOptions Timeout(ExcelLoadOptions excelLoadOptions, TimeSpan value)` [#](#method-timeout-officeimo-excel-excelloadoptions-timespan)

Sets [ExcelLoadOptions.Timeout](/api/excel/officeimo-excel-excelloadoptions/): Gets or sets the timeout applied to the HTTP request and response copy.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value System.TimeSpan required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { Timeout = value };    excelLoadOptions.Timeout(value);
```

`public static ExcelLoadOptions UserAgent(ExcelLoadOptions excelLoadOptions, string? value)` [#](#method-useragent-officeimo-excel-excelloadoptions-string)

Sets [ExcelLoadOptions.UserAgent](/api/excel/officeimo-excel-excelloadoptions/): Gets or sets the user agent sent when a User-Agent header is not provided in [ExcelLoadOptions.Headers](/api/excel/officeimo-excel-excelloadoptions/). Set to null to suppress the default user agent.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { UserAgent = value };    excelLoadOptions.UserAgent(value);
```

`public static ExcelLoadOptions ValidateContentTypeWhenPresent(ExcelLoadOptions excelLoadOptions, bool value = true)` [#](#method-validatecontenttypewhenpresent-officeimo-excel-excelloadoptions-boolean)

Sets [ExcelLoadOptions.ValidateContentTypeWhenPresent](/api/excel/officeimo-excel-excelloadoptions/): Gets or sets whether response Content-Type should be validated when present.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { ValidateContentTypeWhenPresent = value };    excelLoadOptions.ValidateContentTypeWhenPresent(value);
```

`public static ExcelLoadOptions ValidateZipHeader(ExcelLoadOptions excelLoadOptions, bool value = true)` [#](#method-validatezipheader-officeimo-excel-excelloadoptions-boolean)

Sets [ExcelLoadOptions.ValidateZipHeader](/api/excel/officeimo-excel-excelloadoptions/): Gets or sets whether a download must begin with a ZIP, compound Excel, or supported raw BIFF workbook header.

Parameters

**excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelLoadOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { ValidateZipHeader = value };    excelLoadOptions.ValidateZipHeader(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:6A5DC3BBBF080E9D331470FEC80E32EB7740DC6847F60B056D6ECE9209A832A2 -->
