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
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:
Parameter | Type | Description |
---|---|---|
value | MapiProperty | The property value. |
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> |
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. |
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> |
addItem(Long arg0, MapiProperty arg1)
public void addItem(Long arg0, MapiProperty arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Long | |
arg1 | 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
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
containsKey(Long arg0)
public boolean containsKey(Long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
key | long | The 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:
Parameter | Type | Description |
---|---|---|
array | com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty>[] | |
arrayIndex | int |
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 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
generateNamedPropertyTag(long dataType)
public final long generateNamedPropertyTag(long dataType)
Generates named property tag
Parameters:
Parameter | Type | Description |
---|---|---|
dataType | long |
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
Returns: com.aspose.ms.System.Collections.Generic.IGenericCollection
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.
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.
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.
getValues()
public final System.Collections.Generic.IGenericCollection getValues()
Gets an System.Collections.Generic.ICollection
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:
Parameter | Type | Description |
---|---|---|
pd | PropertyDescriptor | The 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:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
tag | long | The 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
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
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:
Parameter | Type | Description |
---|---|---|
pd | PropertyDescriptor | Property 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:
Parameter | Type | Description |
---|---|---|
item | com.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:
Parameter | Type | Description |
---|---|---|
key | long | The 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:
Parameter | Type | Description |
---|---|---|
arg0 | com.aspose.ms.System.Collections.Generic.KeyValuePair<java.lang.Long,com.aspose.email.MapiProperty> |
Returns: boolean
removeItemByKey(Long arg0)
public boolean removeItemByKey(Long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
pd | PropertyDescriptor | The PropertyDescriptor key whose value to get or set. |
value | MapiProperty |
set_Item(Long arg0, MapiProperty arg1)
public void set_Item(Long arg0, MapiProperty arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Long | |
arg1 | MapiProperty |
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 |
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:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Long | |
arg1 | java.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:
Parameter | Type | Description |
---|---|---|
key | long | The property tag. |
value | MapiProperty[] |
Returns: boolean -
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |