Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelLoadOptionsFluent

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Modifiers
static

The fluent methods of 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

Methods

public static ExcelLoadOptions AccessMode(ExcelLoadOptions excelLoadOptions, DocumentAccessMode value) #

Sets DocumentLoadOptions.AccessMode.

Parameters

excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required
The instance.
value OfficeIMO.DocumentAccessMode required
The value.

Returns

ExcelLoadOptions The same instance.

Examples

// 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) #

Sets ExcelLoadOptions.AllowBinaryProjection: 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

// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { AllowBinaryProjection = value };    excelLoadOptions.AllowBinaryProjection(value);
public static ExcelLoadOptions AllowedContentType(ExcelLoadOptions excelLoadOptions, string item) #

Adds an item to ExcelLoadOptions.AllowedContentTypes: Gets the accepted media types used when ExcelLoadOptions.ValidateContentTypeWhenPresent 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) #

Adds items to ExcelLoadOptions.AllowedContentTypes: Gets the accepted media types used when ExcelLoadOptions.ValidateContentTypeWhenPresent 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) #

Adds an item to ExcelLoadOptions.AllowedHosts: 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) #

Adds items to ExcelLoadOptions.AllowedHosts: 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) #

Sets ExcelLoadOptions.AllowPrivateNetworkAddresses: 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

// 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) #

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

// 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) #

Sets ExcelLoadOptions.FileBacked: 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

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { FileBacked = value };    excelLoadOptions.FileBacked(value);
public static ExcelLoadOptions MaxBytes(ExcelLoadOptions excelLoadOptions, long value) #

Sets ExcelLoadOptions.MaxBytes: 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

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxBytes = value };    excelLoadOptions.MaxBytes(value);
public static ExcelLoadOptions MaxCells(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxCells: 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

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxCells = value };    excelLoadOptions.MaxCells(value);
public static ExcelLoadOptions MaxDecodedImageBytes(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxDecodedImageBytes: 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

// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxDecodedImageBytes = value };    excelLoadOptions.MaxDecodedImageBytes(value);
public static ExcelLoadOptions MaxInputBytes(ExcelLoadOptions excelLoadOptions, long? value) #

Sets ExcelLoadOptions.MaxInputBytes: 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

// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxInputBytes = value };    excelLoadOptions.MaxInputBytes(value);
public static ExcelLoadOptions MaxLegacyInputBytes(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxLegacyInputBytes: 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

// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxLegacyInputBytes = value };    excelLoadOptions.MaxLegacyInputBytes(value);
public static ExcelLoadOptions MaxLogicalRows(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxLogicalRows: 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

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxLogicalRows = value };    excelLoadOptions.MaxLogicalRows(value);
public static ExcelLoadOptions MaxMergedRanges(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxMergedRanges: 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

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxMergedRanges = value };    excelLoadOptions.MaxMergedRanges(value);
public static ExcelLoadOptions MaxPackageBytes(ExcelLoadOptions excelLoadOptions, long value) #

Sets ExcelLoadOptions.MaxPackageBytes: 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

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxPackageBytes = value };    excelLoadOptions.MaxPackageBytes(value);
public static ExcelLoadOptions MaxPartBytes(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxPartBytes: 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

// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxPartBytes = value };    excelLoadOptions.MaxPartBytes(value);
public static ExcelLoadOptions MaxRecordBytes(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxRecordBytes: 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

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRecordBytes = value };    excelLoadOptions.MaxRecordBytes(value);
public static ExcelLoadOptions MaxRecordCount(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxRecordCount: 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

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRecordCount = value };    excelLoadOptions.MaxRecordCount(value);
public static ExcelLoadOptions MaxRelatedParts(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxRelatedParts: 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

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRelatedParts = value };    excelLoadOptions.MaxRelatedParts(value);
public static ExcelLoadOptions MaxRelationshipDepth(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxRelationshipDepth: 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

// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRelationshipDepth = value };    excelLoadOptions.MaxRelationshipDepth(value);
public static ExcelLoadOptions MaxRowDefinitions(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxRowDefinitions: 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

// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRowDefinitions = value };    excelLoadOptions.MaxRowDefinitions(value);
public static ExcelLoadOptions MaxSharedStringCharacters(ExcelLoadOptions excelLoadOptions, long value) #

Sets ExcelLoadOptions.MaxSharedStringCharacters: 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

// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxSharedStringCharacters = value };    excelLoadOptions.MaxSharedStringCharacters(value);
public static ExcelLoadOptions MaxSharedStringItemCharacters(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxSharedStringItemCharacters: 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

// C# initializer or property                                                              // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxSharedStringItemCharacters = value };    excelLoadOptions.MaxSharedStringItemCharacters(value);
public static ExcelLoadOptions MaxSharedStrings(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxSharedStrings: 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

// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxSharedStrings = value };    excelLoadOptions.MaxSharedStrings(value);
public static ExcelLoadOptions MaxStringCharacters(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxStringCharacters: 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

// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxStringCharacters = value };    excelLoadOptions.MaxStringCharacters(value);
public static ExcelLoadOptions MaxWorksheets(ExcelLoadOptions excelLoadOptions, int value) #

Sets ExcelLoadOptions.MaxWorksheets: 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

// 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) #

Sets ExcelLoadOptions.OpenSettings: 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

// 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) #

Configures ExcelLoadOptions.OpenSettings 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) #

Sets DocumentLoadOptions.PackageSecurity.

Parameters

excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required
The instance.
value OfficeIMO.OfficePackageSecurityOptions? required
The value.

Returns

ExcelLoadOptions The same instance.

Examples

// 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) #

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

Sets ExcelLoadOptions.Password: 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

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { Password = value };    excelLoadOptions.Password(value);
public static ExcelLoadOptions PersistenceMode(ExcelLoadOptions excelLoadOptions, DocumentPersistenceMode value) #

Sets DocumentCreateOptions.PersistenceMode.

Parameters

excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions required
The instance.
value OfficeIMO.DocumentPersistenceMode required
The value.

Returns

ExcelLoadOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { PersistenceMode = value };    excelLoadOptions.PersistenceMode(value);
public static ExcelLoadOptions Progress(ExcelLoadOptions excelLoadOptions, IProgress<ExcelHttpLoadProgress>? value) #

Sets ExcelLoadOptions.Progress: 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

// 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) #

Sets ExcelLoadOptions.ReportPreservedRecords: 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

// 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) #

Sets ExcelLoadOptions.ReportUnsupportedContent: 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

// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { ReportUnsupportedContent = value };    excelLoadOptions.ReportUnsupportedContent(value);
public static ExcelLoadOptions SchemePolicy(ExcelLoadOptions excelLoadOptions, ExcelUriSchemePolicy value) #

Sets ExcelLoadOptions.SchemePolicy: 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

// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { SchemePolicy = value };    excelLoadOptions.SchemePolicy(value);
public static ExcelLoadOptions Timeout(ExcelLoadOptions excelLoadOptions, TimeSpan value) #

Sets ExcelLoadOptions.Timeout: 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

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { Timeout = value };    excelLoadOptions.Timeout(value);
public static ExcelLoadOptions UserAgent(ExcelLoadOptions excelLoadOptions, string? value) #

Sets ExcelLoadOptions.UserAgent: Gets or sets the user agent sent when a User-Agent header is not provided in ExcelLoadOptions.Headers. 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

// 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) #

Sets ExcelLoadOptions.ValidateContentTypeWhenPresent: 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

// 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) #

Sets ExcelLoadOptions.ValidateZipHeader: 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

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