Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

AttachmentCollection Class

Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll

Represents the collection of mail message attachments.

Syntax
public class AttachmentCollection : ICollection, IEnumerable<Attachment>, IEnumerable
Inheritance
Object
AttachmentCollection
Implements
ICollection
IEnumerable<Attachment>
IEnumerable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

Constructors

Name Description
AttachmentCollection()

Initializes a new instance of the AttachmentCollection.

Properties

Name Description
Count

Gets the number of items in the collection.

IsSynchronized

Gets a value indicating whether access to AttachmentCollection is synchronized (thread-safe).

Item[Int32]

Gets or sets the list item at the specified index.

SyncRoot

Gets an object that can be used to synchronize access to AttachmentCollection object.

Methods

Name Description
Add(Attachment)

Adds an item to the end of the list.

AddRange(ICollection)

Adds a range of items contained in the specified collection.

CopyTo(Attachment[], Int32)

Copies the range of elements from the AttachmentCollection to a compatible one-dimensional array, starting at the specified index of the target array.

GetEnumerator()

Gets an IEnumerator<T> for the AttachmentCollection collection.

RemoveAt(Int32)

Removes the item at the specified index from the list.

Explicit Interface Implementations

Name Description
ICollection.CopyTo(Array, Int32)

Copies the range of elements from the collection to a compatible one-dimensional array, starting at the specified index of the target array.

IEnumerable.GetEnumerator()

Gets an IEnumerator for the collection.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies