Attachment CollectionCopy To Method
Copy all of the attachments in the collection to an array.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void CopyTo(
MimeEntity[] array,
int arrayIndex
)Parameters
- array MimeEntity
- The array to copy the attachments to.
- arrayIndex Int32
- The index into the array.
Implements
ICollectionTCopyTo(T, Int32)Remarks
Copies all of the attachments within the AttachmentCollection into the array,
starting at the specified array index.
Exceptions
| ArgumentNullException | array is . |
| ArgumentOutOfRangeException | arrayIndex is out of range. |