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

ConstructorDescription
MapiPropertyCollection()Creates a new instance of class MapiProperty.

Methods

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

MapiPropertyCollection()

public MapiPropertyCollection()

Creates a new instance of class MapiProperty.

add(MapiProperty value)

public void add(MapiProperty value)

Adds a MapiProperty item with specified tag.

Parameters:

ParameterTypeDescription
valueMapiPropertyThe property value.

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

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

Parameters:

ParameterTypeDescription
itemcom.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

add(long key, MapiProperty value)

public void add(long key, MapiProperty value)

Adds a MapiProperty item with specified tag.

Parameters:

ParameterTypeDescription
keylongThe property tag.
valueMapiPropertyThe property value.

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

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

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

addItem(Long arg0, MapiProperty arg1)

public void addItem(Long arg0, MapiProperty arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Long
arg1MapiProperty

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:

ParameterTypeDescription
itemcom.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

Returns: boolean

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

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

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

Returns: boolean

containsKey(Long arg0)

public boolean containsKey(Long arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Long

Returns: boolean

containsKey(long key)

public final boolean containsKey(long key)

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

Parameters:

ParameterTypeDescription
keylongThe property tag.

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

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

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

Parameters:

ParameterTypeDescription
arraycom.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>[]
arrayIndexint

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

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

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>[]
arg1int

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

generateNamedPropertyTag(long dataType)

public final long generateNamedPropertyTag(long dataType)

Generates named property tag

Parameters:

ParameterTypeDescription
dataTypelong

Returns: long

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

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

getProperty(PropertyDescriptor pd)

public MapiProperty getProperty(PropertyDescriptor pd)

Gets MAPI property by property descriptor.

Parameters:

ParameterTypeDescription
pdPropertyDescriptorProperty descriptor for looked property

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

getTagFromNamedProperty(String name)

public final long getTagFromNamedProperty(String name)

Gets the tag from named property.

Parameters:

ParameterTypeDescription
namejava.lang.StringThe property name

Returns: long - The property tag value.

getTagFromNamedProperty(long LId)

public final long getTagFromNamedProperty(long LId)

Gets the tag from named property.

Parameters:

ParameterTypeDescription
LIdlongThe property id.

Returns: long - The property tag value.

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_Item(PropertyDescriptor pd)

public final MapiProperty get_Item(PropertyDescriptor pd)

Gets or sets the value associated with the specified key.

Parameters:

ParameterTypeDescription
pdPropertyDescriptorThe PropertyDescriptor key whose value to get or set.

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

get_Item(Long arg0)

public MapiProperty get_Item(Long arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Long

Returns: MapiProperty

get_Item(long tag)

public final MapiProperty get_Item(long tag)

Gets or sets the value associated with the specified key.

Parameters:

ParameterTypeDescription
taglongThe tag key whose value to get or set.

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

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>

hashCode()

public native int hashCode()

Returns: int

isReadOnly()

public final boolean isReadOnly()

Gets a value indicating whether the collection is read only.

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»

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(PropertyDescriptor pd)

public final boolean remove(PropertyDescriptor pd)

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

Parameters:

ParameterTypeDescription
pdPropertyDescriptorProperty descriptor of the property to remove.

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

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

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

Parameters:

ParameterTypeDescription
itemcom.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

Returns: boolean

remove(long key)

public final boolean remove(long key)

Removes the property with the specified tag from the collection.

Parameters:

ParameterTypeDescription
keylongThe tag of the property to remove.

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

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

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

Parameters:

ParameterTypeDescription
arg0com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>

Returns: boolean

removeItemByKey(Long arg0)

public boolean removeItemByKey(Long arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Long

Returns: boolean

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:

ParameterTypeDescription
pdPropertyDescriptorThe PropertyDescriptor key whose value to get or set.
valueMapiProperty

set_Item(Long arg0, MapiProperty arg1)

public void set_Item(Long arg0, MapiProperty arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Long
arg1MapiProperty

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:

ParameterTypeDescription
taglongThe tag key whose value to get or set.
valueMapiProperty

size()

public final int size()

Gets the number of elements contained in the collection.

Returns: int

toString()

public String toString()

Returns: java.lang.String

tryGetValue(Long arg0, Object[] arg1)

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

Parameters:

ParameterTypeDescription
arg0java.lang.Long
arg1java.lang.Object[]

Returns: boolean

tryGetValue(long key, MapiProperty[] value)

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

Gets the property associated with the specified tag.

Parameters:

ParameterTypeDescription
keylongThe property tag.
valueMapiProperty[]

Returns: boolean -

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int