Skip to content

MFGS Email Attachment Collection

MFGSEmailAttachmentCollection Public interface

Description

Represents a collection of email attachments

Diagram

flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph VGWWCoreIEx
VGWWCoreIEx.IExMFGSEmailAttachmentCollection[[IExMFGSEmailAttachmentCollection]]
class VGWWCoreIEx.IExMFGSEmailAttachmentCollection interfaceStyle;
end

Members

Properties

Public properties

TypeNameMethods
intCount
Gets the number of attachments in the collection.
get
IExMFGSEmailAttachmentItemget

Methods

Public methods

ReturnsName
IExMFGSEmailAttachmentAddFile(string filePath)
Add a file to the attachment collection.
IExMFGSEmailAttachmentAddMessage(IExMFGSEmailMessage message)
Add a message to the attachment collection.
voidClear()
Clears the collection.
stringJoin(string separator)
Concatenates the name of each attachment in the collection.
voidParseAddFiles(string filePathList, string delimiter)
Add multiple files to the attachment collection.
boolRemove(string name, bool ignoreCase)
Remove an attachment from the collection.
voidRemoveAt(int index)
Remove the attachent at the specified index from the collection.

Details

Summary

Represents a collection of email attachments

Methods

Join

public string Join(string separator)
Arguments
TypeNameDescription
stringseparatorThe separator between each attachment name.
Summary

Concatenates the name of each attachment in the collection.

Returns

A string of attachment names.

Clear

public void Clear()
Summary

Clears the collection.

AddFile

public IExMFGSEmailAttachment AddFile(string filePath)
Arguments
TypeNameDescription
stringfilePathThe path to the file.
Summary

Add a file to the attachment collection.

Returns

The IExMFGSEmailAttachment object, containing the file, which was added to the collection.

AddMessage

public IExMFGSEmailAttachment AddMessage(IExMFGSEmailMessage message)
Arguments
TypeNameDescription
IExMFGSEmailMessagemessageThe IExMFGSEmailMessage object.
Summary

Add a message to the attachment collection.

Returns

The IExMFGSEmailAttachment object, containing the message, which was added to the collection.

ParseAddFiles

public void ParseAddFiles(string filePathList, string delimiter)
Arguments
TypeNameDescription
stringfilePathListA delimited list of files to be added.
stringdelimiterThe delimiter to be used when parsing the list.
Summary

Add multiple files to the attachment collection.

Remove

public bool Remove(string name, bool ignoreCase)
Arguments
TypeNameDescription
stringnameThe name of the attachment to remove.
boolignoreCaseDetermine if case should be ignored.
Summary

Remove an attachment from the collection.

Returns

true if one or more attachments were found and removed, otherwise false.

RemoveAt

public void RemoveAt(int index)
Arguments
TypeNameDescription
intindexThe index of the attachment.
Summary

Remove the attachent at the specified index from the collection.

Properties

Count

public int Count { get; }
Summary

Gets the number of attachments in the collection.

Item

public IExMFGSEmailAttachment Item { get; }

Generated with ModularDoc