The attachments collection for email messages.
| C# | Visual Basic |
public sealed class AttachmentCollection : CollectionBase, IList, ICollection, IEnumerable<Attachment>, IEnumerable, IDisposable
Public NotInheritable Class AttachmentCollection _ Inherits CollectionBase _ Implements IList, ICollection, IEnumerable(Of Attachment), _ IEnumerable, IDisposable
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| AttachmentCollection()()()() |
Creates a new instance of AttachmentCollection.
| |
| Add(Attachment) |
Adds the specified atachment to the collection.
| |
| Capacity |
Gets or sets the number of elements that the CollectionBase can contain.
(Inherited from CollectionBase.) | |
| Clear()()()() |
Removes all objects from the CollectionBase instance. This method cannot be overridden.
(Inherited from CollectionBase.) | |
| Contains(Attachment) |
Returns true if the attachment is contained in the collection.
| |
| Contains(Object) |
Checks if the attachment is contained in the collection.
| |
| CopyTo(array<Attachment>[]()[][], Int32) |
Will copy the collection of attachments to an array.
| |
| CopyTo(Array, Int32) |
Will copy the collection of attachments to an array.
| |
| Count |
Gets the number of elements contained in the CollectionBase instance. This property cannot be overridden.
(Inherited from CollectionBase.) | |
| Dispose()()()() | Releases all resources used by the AttachmentCollection | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() | (Overrides Object.Finalize()()()().) | |
| GetEnumerator()()()() |
Returns an enumerator that iterates through the CollectionBase instance.
(Inherited from CollectionBase.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| IndexOf(Attachment) |
Returns the index of a given attachment.
| |
| IndexOf(Object) |
Returns the index of the specified attachment.
| |
| InnerList |
Gets an ArrayList containing the list of elements in the CollectionBase instance.
(Inherited from CollectionBase.) | |
| Insert(Int32, Attachment) |
Inserts an attachment at a given index in the attachment collection.
| |
| Insert(Int32, Object) |
Inserts an attachment at a given index in the attachment collection.
| |
| Item[([( Int32])]) |
Gets or sets the attachment at a given index.
| |
| List |
Gets an IList containing the list of elements in the CollectionBase instance.
(Inherited from CollectionBase.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| OnClear()()()() |
Performs additional custom processes when clearing the contents of the CollectionBase instance.
(Inherited from CollectionBase.) | |
| OnClearComplete()()()() |
Performs additional custom processes after clearing the contents of the CollectionBase instance.
(Inherited from CollectionBase.) | |
| OnInsert(Int32, Object) |
Performs additional custom processes before inserting a new element into the CollectionBase instance.
(Inherited from CollectionBase.) | |
| OnInsertComplete(Int32, Object) |
Performs additional custom processes after inserting a new element into the CollectionBase instance.
(Inherited from CollectionBase.) | |
| OnRemove(Int32, Object) |
Performs additional custom processes when removing an element from the CollectionBase instance.
(Inherited from CollectionBase.) | |
| OnRemoveComplete(Int32, Object) |
Performs additional custom processes after removing an element from the CollectionBase instance.
(Inherited from CollectionBase.) | |
| OnSet(Int32, Object, Object) |
Performs additional custom processes before setting a value in the CollectionBase instance.
(Inherited from CollectionBase.) | |
| OnSetComplete(Int32, Object, Object) |
Performs additional custom processes after setting a value in the CollectionBase instance.
(Inherited from CollectionBase.) | |
| OnValidate(Object) |
Performs additional custom processes when validating a value.
(Inherited from CollectionBase.) | |
| Remove(Attachment) |
Finds and removes the specified attachment from the collection.
| |
| RemoveAt(Int32) |
Removes the element at the specified index of the CollectionBase instance. This method is not overridable.
(Inherited from CollectionBase.) | |
| ToString()()()() | (Inherited from Object.) |
| Object | ||
| CollectionBase | ||
| AttachmentCollection | ||