Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

EmailAttachmentExtractionOptions

Namespace OfficeIMO.Email
Assembly OfficeIMO.Email
Modifiers sealed

Bounds attachment export without following linked attachment paths.

Inheritance

  • Object
  • EmailAttachmentExtractionOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public EmailAttachmentExtractionOptions(Int32 maxAttachments = 1000, Int64 maxAttachmentBytes = 67108864, Int64 maxTotalBytes = 268435456, Int32 maxDepth = 4, Boolean recurseEmbeddedMessages = false, Boolean includeInline = true, Boolean includeHidden = false) #

Creates an export policy. Embedded messages are exported as EML; nested attachments are optional.

Parameters

maxAttachments System.Int32 = 1000 optionalposition: 0
maxAttachmentBytes System.Int64 = 67108864 optionalposition: 1
maxTotalBytes System.Int64 = 268435456 optionalposition: 2
maxDepth System.Int32 = 4 optionalposition: 3
recurseEmbeddedMessages System.Boolean = false optionalposition: 4
includeInline System.Boolean = true optionalposition: 5
includeHidden System.Boolean = false optionalposition: 6

Properties

public Int32 MaxAttachments { get; } #

Maximum operation-wide attachment visits, including skipped entries and embedded-message serialization.

public Int64 MaxAttachmentBytes { get; } #

Maximum decoded or serialized bytes for one exported attachment.

public Int64 MaxTotalBytes { get; } #

Maximum bytes consumed across attachments, including failed attempts.

public Int32 MaxDepth { get; } #

Maximum embedded-message nesting depth; direct attachments have depth zero.

public Boolean RecurseEmbeddedMessages { get; } #

Whether to visit attachments inside embedded messages as well as exporting their EML.

public Boolean IncludeInline { get; } #

Whether to export inline resources.

public Boolean IncludeHidden { get; } #

Whether to export attachments marked hidden.