API Reference

Class

EmailAttachmentPatch

Namespace OfficeIMO.Email
Assembly OfficeIMO.Email
Modifiers sealed

Ordered, bounds-checked changes to an email attachment collection.

Inheritance

  • Object
  • EmailAttachmentPatch

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

Methods

public EmailAttachmentPatch Add(EmailAttachment attachment) #
Returns: EmailAttachmentPatch

Stages an attachment append.

Parameters

attachment OfficeIMO.Email.EmailAttachment requiredposition: 0
public Void Apply(IList<EmailAttachment> attachments) #
Returns: Void

Applies all operations only after the complete ordered patch has passed validation.

Parameters

attachments System.Collections.Generic.IList{OfficeIMO.Email.EmailAttachment} requiredposition: 0
public EmailAttachmentPatch RemoveAt(Int32 index) #
Returns: EmailAttachmentPatch

Stages removal at the current zero-based index.

Parameters

index System.Int32 requiredposition: 0
public EmailAttachmentPatch ReplaceAt(Int32 index, EmailAttachment attachment) #
Returns: EmailAttachmentPatch

Stages replacement at the current zero-based index.

Parameters

index System.Int32 requiredposition: 0
attachment OfficeIMO.Email.EmailAttachment requiredposition: 1
public Void Validate(IList<EmailAttachment> attachments) #
Returns: Void

Validates every operation against the collection state produced by preceding operations.

Parameters

attachments System.Collections.Generic.IList{OfficeIMO.Email.EmailAttachment} requiredposition: 0

Properties

public IReadOnlyList<EmailAttachmentPatchChange> Changes { get; } #

Ordered immutable view of staged operations.

public Boolean IsEmpty { get; } #

Whether no attachment operation is staged.