Class MapiPropertyCollection
Contents
[
Hide
]MapiPropertyCollection class
The MAPI properties of a message, attachment or recipient, keyed by tag.
public class MapiPropertyCollection : IDictionary<long, MapiProperty>, INamedPropertyTagProvider
Constructors
| Name | Description |
|---|---|
| MapiPropertyCollection() | Initializes a new instance of the MapiPropertyCollection class. |
Properties
| Name | Description |
|---|---|
| Count { get; } | Gets the number of properties in the collection. |
| IsReadOnly { get; } | Gets a value indicating whether the collection is read-only. |
| Item { get; set; } | Gets or sets the value associated with the specified key. (2 indexers) |
| Keys { get; } | Gets the tags of the properties in the collection. |
| Values { get; } | Gets the properties in the collection. |
Methods
| Name | Description |
|---|---|
| Add(KeyValuePair<long, MapiProperty>) | Adds a property under a tag. |
| virtual Add(MapiProperty) | Adds a property under its own tag. |
| virtual Add(long, MapiProperty) | Adds a property under the specified tag. |
| Clear() | Removes all properties from the collection. |
| Contains(KeyValuePair<long, MapiProperty>) | Determines whether the collection contains the tag and property pair. |
| ContainsKey(long) | Determines whether the collection contains a property with the tag. |
| CopyTo(KeyValuePair<long, MapiProperty>[], int) | Copies the tag and property pairs to an array. |
| GetEnumerator() | Returns an enumerator over the tag and property pairs. |
| virtual GetProperty(PropertyDescriptor) | Gets a property by its descriptor. |
| Remove(KeyValuePair<long, MapiProperty>) | Removes the tag and property pair. |
| Remove(long) | Removes the property with the specified tag. |
| Remove(PropertyDescriptor) | Removes the property with the specified descriptor. |
| TryGetValue(long, out MapiProperty) | Gets the property with the specified tag, if there is one. |
Remarks
Returned by Properties. For typed access the methods of MapiPropertyContainer, such as GetPropertyString, are usually more convenient.
See Also
- class MapiProperty
- interface INamedPropertyTagProvider
- namespace Aspose.Email.Mapi
- assembly Aspose.Email