Click or drag to resize
MimeKit

AttachmentCollectionAdd(MimeEntity) Method

Add an attachment.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public void Add(
	MimeEntity attachment
)

Parameters

attachment  MimeEntity
The attachment.

Implements

ICollectionTAdd(T)
Exceptions
ExceptionCondition
ArgumentNullExceptionattachment is null.
Remarks
Adds the specified MimePart as an attachment.
See Also