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

Explore 2 API references to this type

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

Accepted by parameters 2

Constructors

EmailAttachmentExtractionOptions 2 overloads
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
public EmailAttachmentExtractionOptions(IEnumerable<Int32>? selectedAttachmentIndexes, String? fileNamePrefix = null, Int32 maxAttachments = 1000, Int64 maxAttachmentBytes = 67108864, Int64 maxTotalBytes = 268435456, Int32 maxDepth = 4, Boolean recurseEmbeddedMessages = false, Boolean includeInline = true, Boolean includeHidden = false) #

Creates a bounded policy for selected top-level attachments, with an optional source-specific filename prefix.

Parameters

selectedAttachmentIndexes System.Collections.Generic.IEnumerable<System.Int32>? requiredposition: 0
fileNamePrefix System.String? = null optionalposition: 1
maxAttachments System.Int32 = 1000 optionalposition: 2
maxAttachmentBytes System.Int64 = 67108864 optionalposition: 3
maxTotalBytes System.Int64 = 268435456 optionalposition: 4
maxDepth System.Int32 = 4 optionalposition: 5
recurseEmbeddedMessages System.Boolean = false optionalposition: 6
includeInline System.Boolean = true optionalposition: 7
includeHidden System.Boolean = false optionalposition: 8

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.

public IReadOnlyList<Int32>? SelectedAttachmentIndexes { get; } #

Optional top-level zero-based indexes. Null selects all; an empty collection selects none.

public String? FileNamePrefix { get; } #

Optional portable prefix for saving several messages into one directory.