MapiAttachmentCollection Class

Represents a collection of MapiAttachment objects.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericListMapiAttachment
    Aspose.Email.MapiMapiAttachmentCollection

Namespace:  Aspose.Email.Mapi
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public class MapiAttachmentCollection : List<MapiAttachment>

The MapiAttachmentCollection type exposes the following members.

Constructors
  NameDescription
Public methodMapiAttachmentCollection
Initializes a new instance of the MapiAttachmentCollection class.
Public methodMapiAttachmentCollection(MapiMessageItemBase)
Initializes a new instance of the MapiAttachmentCollection class.
Properties
  NameDescription
Public propertyCapacity
Gets or sets the total number of elements the internal data structure can hold without resizing.
(Inherited from ListMapiAttachment.)
Public propertyCount (Inherited from ListMapiAttachment.)
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from ListMapiAttachment.)
Methods
  NameDescription
Public methodAdd(MapiAttachment)
Public methodAdd(String, MapiMessage)
Adds the new attachment as embedded message.
Public methodAdd(String, Byte)
Adds the new attachment.
Public methodAddRange (Inherited from ListMapiAttachment.)
Public methodAsReadOnly (Inherited from ListMapiAttachment.)
Public methodBinarySearch(T)
Searches the entire sorted ListT for an element using the default comparer and returns the zero-based index of the element.
(Inherited from ListMapiAttachment.)
Public methodBinarySearch(T, IComparerT)
Searches the entire sorted ListT for an element using the specified comparer and returns the zero-based index of the element.
(Inherited from ListMapiAttachment.)
Public methodBinarySearch(Int32, Int32, T, IComparerT)
Searches a range of elements in the sorted ListT for an element using the specified comparer and returns the zero-based index of the element.
(Inherited from ListMapiAttachment.)
Public methodClear (Inherited from ListMapiAttachment.)
Public methodContains (Inherited from ListMapiAttachment.)
Public methodConvertAllTOutput (Inherited from ListMapiAttachment.)
Public methodCopyTo(T) (Inherited from ListMapiAttachment.)
Public methodCopyTo(T, Int32) (Inherited from ListMapiAttachment.)
Public methodCopyTo(Int32, T, Int32, Int32)
Copies a range of elements from the ListT to a compatible one-dimensional array, starting at the specified index of the target array.
(Inherited from ListMapiAttachment.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExists (Inherited from ListMapiAttachment.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire ListT.
(Inherited from ListMapiAttachment.)
Public methodFindAll
Retrieves all the elements that match the conditions defined by the specified predicate.
(Inherited from ListMapiAttachment.)
Public methodFindIndex(PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire ListT.
(Inherited from ListMapiAttachment.)
Public methodFindIndex(Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ListT that extends from the specified index to the last element.
(Inherited from ListMapiAttachment.)
Public methodFindIndex(Int32, Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ListT that starts at the specified index and contains the specified number of elements.
(Inherited from ListMapiAttachment.)
Public methodFindLast
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire ListT.
(Inherited from ListMapiAttachment.)
Public methodFindLastIndex(PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire ListT.
(Inherited from ListMapiAttachment.)
Public methodFindLastIndex(Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ListT that extends from the first element to the specified index.
(Inherited from ListMapiAttachment.)
Public methodFindLastIndex(Int32, Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ListT that contains the specified number of elements and ends at the specified index.
(Inherited from ListMapiAttachment.)
Public methodForEach (Inherited from ListMapiAttachment.)
Public methodGetEnumerator (Inherited from ListMapiAttachment.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRange (Inherited from ListMapiAttachment.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf(T) (Inherited from ListMapiAttachment.)
Public methodIndexOf(T, Int32)
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ListT that extends from the specified index to the last element.
(Inherited from ListMapiAttachment.)
Public methodIndexOf(T, Int32, Int32)
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ListT that starts at the specified index and contains the specified number of elements.
(Inherited from ListMapiAttachment.)
Public methodInsert(Int32, MapiAttachment)
Public methodInsert(Int32, String, MapiMessage)
Inserts a message as attachment into the MapiAttachmentCollection at the specified index.
Public methodInsertRange (Inherited from ListMapiAttachment.)
Public methodLastIndexOf(T) (Inherited from ListMapiAttachment.)
Public methodLastIndexOf(T, Int32)
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ListT that extends from the first element to the specified index.
(Inherited from ListMapiAttachment.)
Public methodLastIndexOf(T, Int32, Int32)
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ListT that contains the specified number of elements and ends at the specified index.
(Inherited from ListMapiAttachment.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the first occurrence of a specific object from the MapiAttachmentCollection.
Public methodRemoveAll
Removes all the elements that match the conditions defined by the specified predicate.
(Inherited from ListMapiAttachment.)
Public methodRemoveAt
Removes the element at the specified index of the MapiAttachmentCollection.
Public methodRemoveRange (Inherited from ListMapiAttachment.)
Public methodReplace
Replaces an element at the specified index.
Public methodReverse (Inherited from ListMapiAttachment.)
Public methodReverse(Int32, Int32)
Reverses the order of the elements in the specified range.
(Inherited from ListMapiAttachment.)
Public methodSort (Inherited from ListMapiAttachment.)
Public methodSort(IComparerT) (Inherited from ListMapiAttachment.)
Public methodSort(ComparisonT) (Inherited from ListMapiAttachment.)
Public methodSort(Int32, Int32, IComparerT) (Inherited from ListMapiAttachment.)
Public methodToArray (Inherited from ListMapiAttachment.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTrimExcess (Inherited from ListMapiAttachment.)
Public methodTrueForAll (Inherited from ListMapiAttachment.)
See Also