MapiPropertyCollection

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericDictionary, com.aspose.email.INamedPropertyTagProvider

public class MapiPropertyCollection implements System.Collections.Generic.IGenericDictionary<Long,MapiProperty>, INamedPropertyTagProvider

Represents the collection of MapiProperty items.

Constructors

Constructor Description
MapiPropertyCollection() Creates a new instance of class MapiProperty.

Methods

Method Description
generateNamedPropertyTag(long dataType)
getTagFromNamedProperty(long LId) Gets the tag from named property.
getTagFromNamedProperty(String name) Gets the tag from named property.
getKeys() Gets a System.Collections.Generic.ICollection containing the keys in the collection.
getValues() Gets an System.Collections.Generic.ICollection containing the values in the collection.
get_Keys() Gets a System.Collections.Generic.ICollection containing the keys in the collection.
get_Values() Gets an System.Collections.Generic.ICollection containing the values in the collection.
size() Gets the number of elements contained in the collection.
isReadOnly() Gets a value indicating whether the collection is read only.
get_Item(long tag) Gets or sets the value associated with the specified key.
set_Item(long tag, MapiProperty value) Gets or sets the value associated with the specified key.
get_Item(PropertyDescriptor pd) Gets or sets the value associated with the specified key.
set_Item(PropertyDescriptor pd, MapiProperty value) Gets or sets the value associated with the specified key.
getProperty(PropertyDescriptor pd) Gets MAPI property by property descriptor.
add(long key, MapiProperty value) Adds a MapiProperty item with specified tag.
add(MapiProperty value) Adds a MapiProperty item with specified tag.
containsKey(long key) Determines whether the collection contains a property with the specified tag.
remove(long key) Removes the property with the specified tag from the collection.
remove(PropertyDescriptor pd) Removes the property with the specified property descriptor from the collection.
tryGetValue(long key, MapiProperty[] value) Gets the property associated with the specified tag.
add(System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)
clear() Removes all of the elements from the collection.
contains(System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)
copyTo(System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] array, int arrayIndex)
remove(System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)
iterator()
addItem(System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)
containsItem(System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)
copyToTArray(System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] arg0, int arg1)
removeItem(System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)
addItem(Long arg0, MapiProperty arg1)
containsKey(Long arg0)
get_Item(Long arg0)
removeItemByKey(Long arg0)
set_Item(Long arg0, MapiProperty arg1)
tryGetValue(Long arg0, Object[] arg1)

MapiPropertyCollection()

public MapiPropertyCollection()

Creates a new instance of class MapiProperty.

generateNamedPropertyTag(long dataType)

public final long generateNamedPropertyTag(long dataType)

Generates named property tag

Parameters:

Parameter Type Description
dataType long

Returns: long

getTagFromNamedProperty(long LId)

public final long getTagFromNamedProperty(long LId)

Gets the tag from named property.

Parameters:

Parameter Type Description
LId long The property id.

Returns: long - The property tag value.

getTagFromNamedProperty(String name)

public final long getTagFromNamedProperty(String name)

Gets the tag from named property.

Parameters:

Parameter Type Description
name java.lang.String The property name

Returns: long - The property tag value.

getKeys()

public final System.Collections.Generic.IGenericCollection getKeys()

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

Returns: com.aspose.ms.System.Collections.Generic.IGenericCollection

getValues()

public final System.Collections.Generic.IGenericCollection getValues()

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

Returns: com.aspose.ms.System.Collections.Generic.IGenericCollection

get_Keys()

public final System.Collections.Generic.IGenericCollection<Long> get_Keys()

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

Returns: com.aspose.ms.System.Collections.Generic.IGenericCollection<java.lang.Long>

get_Values()

public final System.Collections.Generic.IGenericCollection<? extends MapiProperty> get_Values()

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

Returns: com.aspose.ms.System.Collections.Generic.IGenericCollection<? extends com.aspose.email.MapiProperty>

size()

public final int size()

Gets the number of elements contained in the collection.

Returns: int

isReadOnly()

public final boolean isReadOnly()

Gets a value indicating whether the collection is read only.

Returns: boolean

get_Item(long tag)

public final MapiProperty get_Item(long tag)

Gets or sets the value associated with the specified key.

Parameters:

Parameter Type Description
tag long The tag key whose value to get or set.

Returns: MapiProperty - The value associated with the specified key.

set_Item(long tag, MapiProperty value)

public final void set_Item(long tag, MapiProperty value)

Gets or sets the value associated with the specified key.

Parameters:

Parameter Type Description
tag long The tag key whose value to get or set.
value MapiProperty

get_Item(PropertyDescriptor pd)

public final MapiProperty get_Item(PropertyDescriptor pd)

Gets or sets the value associated with the specified key.

Parameters:

Parameter Type Description
pd PropertyDescriptor The PropertyDescriptor key whose value to get or set.

Returns: MapiProperty - The value associated with the specified key.

set_Item(PropertyDescriptor pd, MapiProperty value)

public final void set_Item(PropertyDescriptor pd, MapiProperty value)

Gets or sets the value associated with the specified key.

Parameters:

Parameter Type Description
pd PropertyDescriptor The PropertyDescriptor key whose value to get or set.
value MapiProperty

getProperty(PropertyDescriptor pd)

public MapiProperty getProperty(PropertyDescriptor pd)

Gets MAPI property by property descriptor.

Parameters:

Parameter Type Description
pd PropertyDescriptor Property descriptor for looked property

Returns: MapiProperty - Mapi property if it is found, otherwise null.

add(long key, MapiProperty value)

public void add(long key, MapiProperty value)

Adds a MapiProperty item with specified tag.

Parameters:

Parameter Type Description
key long The property tag.
value MapiProperty The property value.

add(MapiProperty value)

public void add(MapiProperty value)

Adds a MapiProperty item with specified tag.

Parameters:

Parameter Type Description
value MapiProperty The property value.

containsKey(long key)

public final boolean containsKey(long key)

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

Parameters:

Parameter Type Description
key long The property tag.

Returns: boolean - true if the collection contains a property with the tag; otherwise, false

remove(long key)

public final boolean remove(long key)

Removes the property with the specified tag from the collection.

Parameters:

Parameter Type Description
key long The tag of the property to remove.

Returns: boolean - true if the property is successfully removed; otherwise, false.

remove(PropertyDescriptor pd)

public final boolean remove(PropertyDescriptor pd)

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

Parameters:

Parameter Type Description
pd PropertyDescriptor Property descriptor of the property to remove.

Returns: boolean - true if the property is successfully removed; otherwise, false.

tryGetValue(long key, MapiProperty[] value)

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

Gets the property associated with the specified tag.

Parameters:

Parameter Type Description
key long The property tag.
value com.aspose.email.MapiProperty[]

Returns: boolean -

add(System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)

public final void add(System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)

Parameters:

Parameter Type Description
item com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

clear()

public final void clear()

Removes all of the elements from the collection.

contains(System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)

public final boolean contains(System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)

Parameters:

Parameter Type Description
item com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

Returns: boolean

copyTo(System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] array, int arrayIndex)

public final void copyTo(System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] array, int arrayIndex)

Parameters:

Parameter Type Description
array com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>[]
arrayIndex int

remove(System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)

public final boolean remove(System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)

Parameters:

Parameter Type Description
item com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

Returns: boolean

iterator()

public final System.Collections.Generic.IGenericEnumerator<System.Collections.Generic.KeyValuePair<Long,MapiProperty>> iterator()

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty»

addItem(System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)

public void addItem(System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)

Parameters:

Parameter Type Description
arg0 com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

containsItem(System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)

public boolean containsItem(System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)

Parameters:

Parameter Type Description
arg0 com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

Returns: boolean

copyToTArray(System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] arg0, int arg1)

public void copyToTArray(System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] arg0, int arg1)

Parameters:

Parameter Type Description
arg0 com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>[]
arg1 int

removeItem(System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)

public boolean removeItem(System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)

Parameters:

Parameter Type Description
arg0 com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

Returns: boolean

addItem(Long arg0, MapiProperty arg1)

public void addItem(Long arg0, MapiProperty arg1)

Parameters:

Parameter Type Description
arg0 java.lang.Long
arg1 MapiProperty

containsKey(Long arg0)

public boolean containsKey(Long arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Long

Returns: boolean

get_Item(Long arg0)

public MapiProperty get_Item(Long arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Long

Returns: MapiProperty

removeItemByKey(Long arg0)

public boolean removeItemByKey(Long arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Long

Returns: boolean

set_Item(Long arg0, MapiProperty arg1)

public void set_Item(Long arg0, MapiProperty arg1)

Parameters:

Parameter Type Description
arg0 java.lang.Long
arg1 MapiProperty

tryGetValue(Long arg0, Object[] arg1)

public boolean tryGetValue(Long arg0, Object[] arg1)

Parameters:

Parameter Type Description
arg0 java.lang.Long
arg1 java.lang.Object[]

Returns: boolean