API Reference
EmailWriterOptions
Immutable policy for deterministic email serialization.
Inheritance
- Object
- EmailWriterOptions
Usage
Explore 23 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.
Returned or exposed by 7
- Property EmailDocumentWriter.Options
- Property EmailMailboxWriterOptions.MessageOptions
- Property EmailWriterOptions.Default
- Property EmailStoreEmlxWriterOptions.MessageOptions
- Property EmailStoreExportOptions.WriterOptions
- Property EmailStoreNativeDirectoryExportOptions.MessageOptions
- Property EmailStoreRecoveryExportOptions.WriterOptions
Accepted by parameters 16
- Method EmailDocument.Save
- Method EmailDocument.SaveAsync
- Method EmailDocument.SaveWithConflictPolicy
- Method EmailDocument.SaveWithConflictPolicyAsync
- Method EmailDocument.ToBytes
- Method EmailDocument.ToStream
- Constructor EmailDocumentWriter.EmailDocumentWriter
- Constructor EmailMailboxWriterOptions.EmailMailboxWriterOptions
- Method EmailMessage.Save
- Method EmailSmime.Encrypt
- Method EmailSmime.Sign
- Method EmailSmime.SignAndEncrypt
- Constructor EmailStoreEmlxWriterOptions.EmailStoreEmlxWriterOptions
- Constructor EmailStoreExportOptions.EmailStoreExportOptions
- Constructor EmailStoreNativeDirectoryExportOptions.EmailStoreNativeDirectoryExportOptions
- Constructor EmailStoreRecoveryExportOptions.EmailStoreRecoveryExportOptions
Constructors
public EmailWriterOptions(Boolean usePreservedRawSource = false, Boolean includeBccHeader = false, Int32 base64LineLength = 76, Int32 maxNestedMessageDepth = 16, Int64 maxOutputBytes = 536870912) #Creates writer options.
Parameters
- usePreservedRawSource System.Boolean = false
- includeBccHeader System.Boolean = false
- base64LineLength System.Int32 = 76
- maxNestedMessageDepth System.Int32 = 16
- maxOutputBytes System.Int64 = 536870912
public EmailWriterOptions(EmailConversionLossPolicy conversionLossPolicy, Boolean usePreservedRawSource = false, Boolean includeBccHeader = false, Int32 base64LineLength = 76, Int32 maxNestedMessageDepth = 16, Int64 maxOutputBytes = 536870912) #Creates writer options with an explicit semantic-loss policy.
Parameters
- conversionLossPolicy OfficeIMO.Email.EmailConversionLossPolicy
- usePreservedRawSource System.Boolean = false
- includeBccHeader System.Boolean = false
- base64LineLength System.Int32 = 76
- maxNestedMessageDepth System.Int32 = 16
- maxOutputBytes System.Int64 = 536870912
public EmailWriterOptions(OfficeSignatureMutationPolicy signatureMutationPolicy, EmailConversionLossPolicy conversionLossPolicy = Block, Boolean usePreservedRawSource = false, Boolean includeBccHeader = false, Int32 base64LineLength = 76, Int32 maxNestedMessageDepth = 16, Int64 maxOutputBytes = 536870912) #Creates writer options with an explicit policy for transport signatures invalidated by regeneration.
Parameters
- signatureMutationPolicy OfficeIMO.OfficeSignatureMutationPolicy
- conversionLossPolicy OfficeIMO.Email.EmailConversionLossPolicy = Block
- usePreservedRawSource System.Boolean = false
- includeBccHeader System.Boolean = false
- base64LineLength System.Int32 = 76
- maxNestedMessageDepth System.Int32 = 16
- maxOutputBytes System.Int64 = 536870912
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public static EmailWriterOptions Default { get; } #Default deterministic writer policy.
public Boolean UsePreservedRawSource { get; } #Whether an unchanged preserved source should be emitted instead of regenerating the artifact.
public Boolean IncludeBccHeader { get; } #Whether Bcc recipients are written into the message header.
public Int32 Base64LineLength { get; } #Maximum encoded characters on one Base64 body line.
public Int32 MaxNestedMessageDepth { get; } #Maximum embedded-message write depth.
public EmailConversionLossPolicy ConversionLossPolicy { get; } #Policy applied when the requested format cannot preserve known message semantics.
public OfficeSignatureMutationPolicy SignatureMutationPolicy { get; } #Policy for DKIM, DomainKey, and ARC headers when serializing regenerated content. Defaults to blocking. This does not verify signatures or authorize rewriting a protected S/MIME wrapper.