|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<MapiAttachment>
com.aspose.email.MapiAttachmentCollection
public class MapiAttachmentCollection
Represents a collection of MapiAttachment objects.
| Constructor Summary | |
|---|---|
MapiAttachmentCollection()
Initializes a new instance of the MapiAttachmentCollection class. |
|
MapiAttachmentCollection(MapiMessage owner)
Initializes a new instance of the MapiAttachmentCollection class. |
|
| Method Summary | |
|---|---|
void |
add(String name,
byte[] data)
Adds the new attachment. |
void |
addMapiAttachment(MapiAttachment item)
Adds an object to the end of the T:System.Collections.ObjectModel.Collection`1. |
void |
insertMapiAttachment(int index,
MapiAttachment item)
Inserts an element into the T:System.Collections.ObjectModel.Collection`1 at the specified index. |
| Methods inherited from class java.util.ArrayList |
|---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Constructor Detail |
|---|
public MapiAttachmentCollection()
Initializes a new instance of the MapiAttachmentCollection class.
public MapiAttachmentCollection(MapiMessage owner)
Initializes a new instance of the MapiAttachmentCollection class.
owner - The owner message.| Method Detail |
|---|
public void add(String name,
byte[] data)
Adds the new attachment.
name - The name of attachment.data - The attachment data.
com.aspose.email.ms.System.IllegalArgumentException - throws if attachment name is null or empty.
com.aspose.email.ms.System.IllegalArgumentException - throws if attachment data is null.public void addMapiAttachment(MapiAttachment item)
Adds an object to the end of the T:System.Collections.ObjectModel.Collection`1.
item - The object to be added to the end of the T:System.Collections.ObjectModel.Collection`1. The value can be null for reference types.
public void insertMapiAttachment(int index,
MapiAttachment 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.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||