com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MapiPropertyCollection

    • Constructor Detail

      • MapiPropertyCollection

        public MapiPropertyCollection()

        Creates a new instance of class MapiProperty.

    • Method Detail

      • getTagFromNamedProperty

        public final long getTagFromNamedProperty(long LId)

        Gets the tag from named property.

        Specified by:
        getTagFromNamedProperty in interface INamedPropertyTagProvider
        Parameters:
        LId - The property id.
        Returns:
        The property tag value.
      • getTagFromNamedProperty

        public final long getTagFromNamedProperty(String name)

        Gets the tag from named property.

        Specified by:
        getTagFromNamedProperty in interface INamedPropertyTagProvider
        Parameters:
        name - The property name
        Returns:
        The property tag value.
        Throws:
        ArgumentException - name is null or empty
      • getKeys

        public final IGenericCollection getKeys()

        Gets a System.Collections.Generic.ICollection<long> containing the keys in the collection.

        Specified by:
        getKeys in interface IGenericDictionary<Long,MapiProperty>
      • getValues

        public final IGenericCollection getValues()

        Gets an System.Collections.Generic.ICollection<MapiProperty> containing the values in the collection.

        Specified by:
        getValues in interface IGenericDictionary<Long,MapiProperty>
      • get_Keys

        public final IGenericCollection<Long> get_Keys()

        Gets a System.Collections.Generic.ICollection<long> containing the keys in the collection.

      • get_Values

        public final IGenericCollection<? extends MapiProperty> get_Values()

        Gets an System.Collections.Generic.ICollection<MapiProperty> containing the values in the collection.

      • size

        public final int size()

        Gets the number of elements contained in the collection.

        Specified by:
        size in interface IGenericCollection<KeyValuePair<Long,MapiProperty>>
      • isReadOnly

        public final boolean isReadOnly()

        Gets a value indicating whether the collection is read only.

        Specified by:
        isReadOnly in interface IGenericCollection<KeyValuePair<Long,MapiProperty>>
      • get_Item

        public final MapiProperty get_Item(long tag)

        Gets or sets the value associated with the specified key.

        Parameters:
        tag - The tag key whose value to get or set.
        Returns:
        The value associated with the specified key.
      • set_Item

        public final void set_Item(long tag,
                    MapiProperty value)

        Gets or sets the value associated with the specified key.

        Parameters:
        tag - The tag key whose value to get or set.
      • get_Item

        public final MapiProperty get_Item(PropertyDescriptor pd)

        Gets or sets the value associated with the specified key.

        Parameters:
        pd - The PropertyDescriptor key whose value to get or set.
        Returns:
        The value associated with the specified key.
      • getProperty

        public MapiProperty getProperty(PropertyDescriptor pd)

        Gets MAPI property by property descriptor.

        Parameters:
        pd - Property descriptor for looked property
        Returns:
        Mapi property if it is found, otherwise null.
      • setProperty

        protected void setProperty(PropertyDescriptor pd,
                       Object value)

        Sets MAPI property.

        Parameters:
        pd - The property descriptor.
        value - The property data.
      • add

        public void add(long key,
               MapiProperty value)

        Adds a MapiProperty item with specified tag.

        Parameters:
        key - The property tag.
        value - The property value.
      • add

        public void add(MapiProperty value)

        Adds a MapiProperty item with specified tag.

        Parameters:
        value - The property value.
      • containsKey

        public final boolean containsKey(long key)

        Determines whether the collection contains a property with the specified tag.

        Parameters:
        key - The property tag.
        Returns:
        true if the collection contains a property with the tag; otherwise, false
      • remove

        public final boolean remove(long key)

        Removes the property with the specified tag from the collection.

        Parameters:
        key - The tag of the property to remove.
        Returns:
        true if the property is successfully removed; otherwise, false.
      • remove

        public final boolean remove(PropertyDescriptor pd)

        Removes the property with the specified property descriptor from the collection.

        Parameters:
        pd - Property descriptor of the property to remove.
        Returns:
        true if the property is successfully removed; otherwise, false.
      • tryGetValue

        public final boolean tryGetValue(long key,
                          MapiProperty[] value)

        Gets the property associated with the specified tag.

        Parameters:
        key - The property tag.
        value -
        Returns:
      • clear

        public final void clear()

        Removes all of the elements from the collection.

        Specified by:
        clear in interface IGenericCollection<KeyValuePair<Long,MapiProperty>>
      • contains

        public final boolean contains(KeyValuePair<Long,MapiProperty> item)
      • copyTo

        public final void copyTo(KeyValuePair<Long,MapiProperty>[] array,
                  int arrayIndex)
      • containsItem

        public boolean containsItem(KeyValuePair<Long,MapiProperty> arg0)
        Specified by:
        containsItem in interface IGenericCollection<KeyValuePair<Long,MapiProperty>>
      • copyToTArray

        public void copyToTArray(KeyValuePair<Long,MapiProperty>[] arg0,
                        int arg1)
        Specified by:
        copyToTArray in interface IGenericCollection<KeyValuePair<Long,MapiProperty>>
      • removeItem

        public boolean removeItem(KeyValuePair<Long,MapiProperty> arg0)
        Specified by:
        removeItem in interface IGenericCollection<KeyValuePair<Long,MapiProperty>>
      • containsKey

        public boolean containsKey(Long arg0)
        Specified by:
        containsKey in interface IGenericDictionary<Long,MapiProperty>
      • removeItemByKey

        public boolean removeItemByKey(Long arg0)
        Specified by:
        removeItemByKey in interface IGenericDictionary<Long,MapiProperty>
      • tryGetValue

        public boolean tryGetValue(Long arg0,
                          Object[] arg1)
        Specified by:
        tryGetValue in interface IGenericDictionary<Long,MapiProperty>