Class
EmailAttachmentPatch
OfficeIMO.Email
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.
Returned or exposed by 4
- Method EmailAttachmentPatch.Add
- Method EmailAttachmentPatch.RemoveAt
- Method EmailAttachmentPatch.ReplaceAt
- Property EmailStoreItemPatch.Attachments
Accepted by parameters 2
Constructors
public EmailAttachmentPatch() #Methods
public EmailAttachmentPatch Add(EmailAttachment attachment) #Stages an attachment append.
Parameters
- attachment OfficeIMO.Email.EmailAttachment
Returns
EmailAttachmentPatchpublic 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>
public EmailAttachmentPatch RemoveAt(int index) #Stages removal at the current zero-based index.
Parameters
- index int
Returns
EmailAttachmentPatchpublic EmailAttachmentPatch ReplaceAt(int index, EmailAttachment attachment) #Stages replacement at the current zero-based index.
Parameters
- index int
- attachment OfficeIMO.Email.EmailAttachment
Returns
EmailAttachmentPatchpublic 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>
Inherited Methods
Properties
public IReadOnlyList<EmailAttachmentPatchChange> Changes { get; } #Ordered immutable view of staged operations.