ExcelLoadOptionsFluent
OfficeIMO.Excel
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
- The instance.
- value OfficeIMO.DocumentAccessMode
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- item string
- The item.
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
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
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
- The instance.
- item string
- The item.
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
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value long
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxDecodedImageBytes = value }; excelLoadOptions.MaxDecodedImageBytes(value);public static ExcelLoadOptions MaxHyperlinks(ExcelLoadOptions excelLoadOptions, int value) #Sets ExcelLoadOptions.MaxHyperlinks: For XLSB sources, controls the maximum number of worksheet hyperlinks accepted from one workbook.
Parameters
- excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxHyperlinks = value }; excelLoadOptions.MaxHyperlinks(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
- The instance.
- value long?
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value long
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRecordCount = value }; excelLoadOptions.MaxRecordCount(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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxRowDefinitions = value }; excelLoadOptions.MaxRowDefinitions(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
- The instance.
- value int
- The value.
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
- The instance.
- value int
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { MaxWorksheets = value }; excelLoadOptions.MaxWorksheets(value);public static ExcelLoadOptions OpenSettings(ExcelLoadOptions excelLoadOptions, OfficeOpenXmlLoadSettings? value) #Sets ExcelLoadOptions.OpenSettings: Provides optional low-level Open XML package settings.
Parameters
- excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions
- The instance.
- value OfficeIMO.OfficeOpenXmlLoadSettings?
- The value.
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
- The instance.
- configure System.Action<OfficeIMO.OfficeOpenXmlLoadSettings>
- Configures the value.
public static ExcelLoadOptions PackageSecurity(ExcelLoadOptions excelLoadOptions, OfficePackageSecurityOptions? value) #Sets DocumentLoadOptions.PackageSecurity.
Parameters
- excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions
- The instance.
- value OfficeIMO.OfficePackageSecurityOptions?
- The value.
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
- The instance.
- configure System.Action<OfficeIMO.OfficePackageSecurityOptions>
- Configures the value.
public static ExcelLoadOptions Password(ExcelLoadOptions excelLoadOptions, string? value) #Sets ExcelLoadOptions.Password: Password for an encrypted workbook source.
Parameters
- excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions
- The instance.
- value string?
- The value.
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
- The instance.
- value OfficeIMO.DocumentPersistenceMode
- The value.
Examples
// 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) #Sets ExcelLoadOptions.PreserveExternalWorkbookLinks: Retains active external-workbook links in legacy projections. The default keeps them inert.
Parameters
- excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// 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) #Sets ExcelLoadOptions.Progress: Gets or sets an optional progress sink invoked as response bytes are copied.
Parameters
- excelLoadOptions OfficeIMO.Excel.ExcelLoadOptions
- The instance.
- value System.IProgress<OfficeIMO.Excel.ExcelHttpLoadProgress>?
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value OfficeIMO.Excel.ExcelUriSchemePolicy
- The value.
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
- The instance.
- value System.TimeSpan
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelLoadOptions { ValidateZipHeader = value }; excelLoadOptions.ValidateZipHeader(value);