Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailAttachmentPatch

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email
Source revision
be6c300e4ab1 with working tree changes
Modifiers
sealed

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

Inheritance

  • object
  • EmailAttachmentPatch

Usage

Explore 6 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 EmailAttachmentPatch() #

Methods

public EmailAttachmentPatch Add(EmailAttachment attachment) #

Stages an attachment append.

Parameters

attachment OfficeIMO.Email.EmailAttachment required
public void Apply(IList<EmailAttachment> attachments) #

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

Parameters

attachments System.Collections.Generic.IList<OfficeIMO.Email.EmailAttachment> required
public EmailAttachmentPatch RemoveAt(int index) #

Stages removal at the current zero-based index.

Parameters

index int required
public EmailAttachmentPatch ReplaceAt(int index, EmailAttachment attachment) #

Stages replacement at the current zero-based index.

Parameters

index int required
attachment OfficeIMO.Email.EmailAttachment required
public void Validate(IList<EmailAttachment> attachments) #

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

Parameters

attachments System.Collections.Generic.IList<OfficeIMO.Email.EmailAttachment> required

Properties

public IReadOnlyList<EmailAttachmentPatchChange> Changes { get; } #

Ordered immutable view of staged operations.

public bool IsEmpty { get; } #

Whether no attachment operation is staged.