EmailAttachmentExtractionOptions
OfficeIMO.Email
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
public EmailAttachmentExtractionOptions(int maxAttachments = 1000, long maxAttachmentBytes = 67108864, long maxTotalBytes = 268435456, int maxDepth = 4, bool recurseEmbeddedMessages = false, bool includeInline = true, bool includeHidden = false) #Creates an export policy. Embedded messages are exported as EML; nested attachments are optional.
Parameters
- maxAttachments int = 1000
- maxAttachmentBytes long = 67108864
- maxTotalBytes long = 268435456
- maxDepth int = 4
- recurseEmbeddedMessages bool = false
- includeInline bool = true
- includeHidden bool = false
public EmailAttachmentExtractionOptions(IEnumerable<int>? selectedAttachmentIndexes, string? fileNamePrefix = null, int maxAttachments = 1000, long maxAttachmentBytes = 67108864, long maxTotalBytes = 268435456, int maxDepth = 4, bool recurseEmbeddedMessages = false, bool includeInline = true, bool includeHidden = false) #Creates a bounded policy for selected top-level attachments, with an optional source-specific filename prefix.
Parameters
- selectedAttachmentIndexes System.Collections.Generic.IEnumerable<int>?
- fileNamePrefix string? = null
- maxAttachments int = 1000
- maxAttachmentBytes long = 67108864
- maxTotalBytes long = 268435456
- maxDepth int = 4
- recurseEmbeddedMessages bool = false
- includeInline bool = true
- includeHidden bool = false
Inherited Methods
Properties
public int MaxAttachments { get; } #Maximum operation-wide attachment visits, including skipped entries and embedded-message serialization.
public long MaxAttachmentBytes { get; } #Maximum decoded or serialized bytes for one exported attachment.
public long MaxTotalBytes { get; } #Maximum bytes consumed across attachments, including failed attempts.
public int MaxDepth { get; } #Maximum embedded-message nesting depth; direct attachments have depth zero.
public bool RecurseEmbeddedMessages { get; } #Whether to visit attachments inside embedded messages as well as exporting their EML.
public bool IncludeInline { get; } #Whether to export inline resources.
public IReadOnlyList<int>? 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.