API Reference
EmailAttachmentExtractionOptions
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(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
- maxAttachmentBytes System.Int64 = 67108864
- maxTotalBytes System.Int64 = 268435456
- maxDepth System.Int32 = 4
- recurseEmbeddedMessages System.Boolean = false
- includeInline System.Boolean = true
- includeHidden System.Boolean = false
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>?
- fileNamePrefix System.String? = null
- maxAttachments System.Int32 = 1000
- maxAttachmentBytes System.Int64 = 67108864
- maxTotalBytes System.Int64 = 268435456
- maxDepth System.Int32 = 4
- recurseEmbeddedMessages System.Boolean = false
- includeInline System.Boolean = true
- includeHidden System.Boolean = false
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
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 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.