public final class AttachmentCollection extends ArrayList<Attachment> implements com.aspose.email.ms.System.IDisposable
Represents a collection of e-mail message attachments.
modCount
Modifier and Type | Method and Description |
---|---|
protected void |
clearItems()
Removes all elements from the
T:System.Collections.ObjectModel.Collection`1 . |
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protected void |
insertItem(int index,
Attachment item)
Inserts an element into the
T:System.Collections.ObjectModel.Collection`1 at the specified index. |
protected void |
removeItem(int index)
Removes the element at the specified index of the
T:System.Collections.ObjectModel.Collection`1 . |
protected void |
setItem(int index,
Attachment item)
Replaces the element at the specified index.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.email.ms.System.IDisposable
protected void removeItem(int index)
Removes the element at the specified index of the T:System.Collections.ObjectModel.Collection`1
.
index
- The zero-based index of the element to remove.T:System.ArgumentOutOfRangeException
- index
is less than zero.
-or-
index
is equal to or greater than P:System.Collections.ObjectModel.Collection`1.Count
.protected void clearItems()
Removes all elements from the T:System.Collections.ObjectModel.Collection`1
.
protected void setItem(int index, Attachment item)
Replaces the element at the specified index.
index
- The zero-based index of the element to replace.item
- The new value for the element at the specified index. The value can be null for reference types.T:System.ArgumentOutOfRangeException
- index
is less than zero.
-or-
index
is greater than P:System.Collections.ObjectModel.Collection`1.Count
.protected void insertItem(int index, Attachment item)
Inserts an element into the T:System.Collections.ObjectModel.Collection`1
at the specified index.
index
- The zero-based index at which item
should be inserted.item
- The object to insert. The value can be null for reference types.T:System.ArgumentOutOfRangeException
- index
is less than zero.
-or-
index
is greater than P:System.Collections.ObjectModel.Collection`1.Count
.Copyright (c) 2008-2014 Aspose Pty Ltd. All Rights Reserved.