public class MapiPropertyCollection extends Object implements com.aspose.ms.System.Collections.Generic.IGenericDictionary<Long,MapiProperty>, INamedPropertyTagProvider
Represents the collection of MapiProperty items.
| Constructor and Description |
|---|
MapiPropertyCollection()
Creates a new instance of class MapiProperty.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> item) |
void |
add(long key,
MapiProperty value)
Adds a MapiProperty item with specified tag.
|
void |
add(MapiProperty value)
Adds a MapiProperty item with specified tag.
|
void |
addItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0) |
void |
addItem(Long arg0,
MapiProperty arg1) |
void |
clear()
Removes all of the elements from the collection.
|
boolean |
contains(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> item) |
boolean |
containsItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0) |
boolean |
containsKey(long key)
Determines whether the collection contains a property with the specified tag.
|
boolean |
containsKey(Long arg0) |
void |
copyTo(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] array,
int arrayIndex) |
void |
copyToTArray(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] arg0,
int arg1) |
long |
generateNamedPropertyTag(long dataType)
Generates named property tag
|
MapiProperty |
get_Item(long tag)
Gets or sets the value associated with the specified key.
|
MapiProperty |
get_Item(Long arg0) |
MapiProperty |
get_Item(PropertyDescriptor pd)
Gets or sets the value associated with the specified key.
|
com.aspose.ms.System.Collections.Generic.IGenericCollection<Long> |
get_Keys()
Gets a System.Collections.Generic.ICollection<long> containing the keys in the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericCollection<? extends MapiProperty> |
get_Values()
Gets an System.Collections.Generic.ICollection<MapiProperty> containing the values in the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericCollection |
getKeys()
Gets a System.Collections.Generic.ICollection<long> containing the keys in the collection.
|
MapiProperty |
getProperty(PropertyDescriptor pd)
Gets MAPI property by property descriptor.
|
long |
getTagFromNamedProperty(long LId)
Gets the tag from named property.
|
long |
getTagFromNamedProperty(String name)
Gets the tag from named property.
|
com.aspose.ms.System.Collections.Generic.IGenericCollection |
getValues()
Gets an System.Collections.Generic.ICollection<MapiProperty> containing the values in the collection.
|
boolean |
isReadOnly()
Gets a value indicating whether the collection is read only.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>> |
iterator() |
boolean |
remove(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> item) |
boolean |
remove(long key)
Removes the property with the specified tag from the collection.
|
boolean |
remove(PropertyDescriptor pd)
Removes the property with the specified property descriptor from the collection.
|
boolean |
removeItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0) |
boolean |
removeItemByKey(Long arg0) |
void |
set_Item(long tag,
MapiProperty value)
Gets or sets the value associated with the specified key.
|
void |
set_Item(Long arg0,
MapiProperty arg1) |
void |
set_Item(PropertyDescriptor pd,
MapiProperty value)
Gets or sets the value associated with the specified key.
|
protected void |
setProperty(PropertyDescriptor pd,
Object value)
Sets MAPI property.
|
int |
size()
Gets the number of elements contained in the collection.
|
boolean |
tryGetValue(long key,
MapiProperty[] value)
Gets the property associated with the specified tag.
|
boolean |
tryGetValue(Long arg0,
Object[] arg1) |
public MapiPropertyCollection()
Creates a new instance of class MapiProperty.
public final long generateNamedPropertyTag(long dataType)
INamedPropertyTagProviderGenerates named property tag
generateNamedPropertyTag in interface INamedPropertyTagProviderdataType - Named property data typepublic final long getTagFromNamedProperty(long LId)
Gets the tag from named property.
getTagFromNamedProperty in interface INamedPropertyTagProviderLId - The property id.public final long getTagFromNamedProperty(String name)
Gets the tag from named property.
getTagFromNamedProperty in interface INamedPropertyTagProvidername - The property namecom.aspose.ms.System.ArgumentException - name is null or emptypublic final com.aspose.ms.System.Collections.Generic.IGenericCollection getKeys()
Gets a System.Collections.Generic.ICollection<long> containing the keys in the collection.
getKeys in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<Long,MapiProperty>public final com.aspose.ms.System.Collections.Generic.IGenericCollection getValues()
Gets an System.Collections.Generic.ICollection<MapiProperty> containing the values in the collection.
getValues in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<Long,MapiProperty>public final com.aspose.ms.System.Collections.Generic.IGenericCollection<Long> get_Keys()
Gets a System.Collections.Generic.ICollection<long> containing the keys in the collection.
public final com.aspose.ms.System.Collections.Generic.IGenericCollection<? extends MapiProperty> get_Values()
Gets an System.Collections.Generic.ICollection<MapiProperty> containing the values in the collection.
public final int size()
Gets the number of elements contained in the collection.
size in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>public final boolean isReadOnly()
Gets a value indicating whether the collection is read only.
isReadOnly in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>public final MapiProperty get_Item(long tag)
Gets or sets the value associated with the specified key.
tag - The tag key whose value to get or set.public final void set_Item(long tag,
MapiProperty value)
Gets or sets the value associated with the specified key.
tag - The tag key whose value to get or set.public final MapiProperty get_Item(PropertyDescriptor pd)
Gets or sets the value associated with the specified key.
pd - The PropertyDescriptor key whose value to get or set.public final void set_Item(PropertyDescriptor pd, MapiProperty value)
Gets or sets the value associated with the specified key.
pd - The PropertyDescriptor key whose value to get or set.public MapiProperty getProperty(PropertyDescriptor pd)
Gets MAPI property by property descriptor.
pd - Property descriptor for looked propertyprotected void setProperty(PropertyDescriptor pd, Object value)
Sets MAPI property.
pd - The property descriptor.value - The property data.public void add(long key,
MapiProperty value)
Adds a MapiProperty item with specified tag.
key - The property tag.value - The property value.public void add(MapiProperty value)
Adds a MapiProperty item with specified tag.
value - The property value.public final boolean containsKey(long key)
Determines whether the collection contains a property with the specified tag.
key - The property tag.public final boolean remove(long key)
Removes the property with the specified tag from the collection.
key - The tag of the property to remove.public final boolean remove(PropertyDescriptor pd)
Removes the property with the specified property descriptor from the collection.
pd - Property descriptor of the property to remove.public final boolean tryGetValue(long key,
MapiProperty[] value)
Gets the property associated with the specified tag.
key - The property tag.value - public final void add(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)
public final void clear()
Removes all of the elements from the collection.
clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>public final boolean contains(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)
public final void copyTo(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] array, int arrayIndex)
public final boolean remove(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> item)
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>> iterator()
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>iterator in interface com.aspose.ms.System.Collections.IEnumerable<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>iterator in interface Iterable<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>public void addItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)
addItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>public boolean containsItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)
containsItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>public void copyToTArray(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>[] arg0, int arg1)
copyToTArray in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>public boolean removeItem(com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty> arg0)
removeItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<com.aspose.ms.System.Collections.Generic.KeyValuePair<Long,MapiProperty>>public void addItem(Long arg0, MapiProperty arg1)
addItem in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<Long,MapiProperty>public boolean containsKey(Long arg0)
containsKey in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<Long,MapiProperty>public MapiProperty get_Item(Long arg0)
get_Item in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<Long,MapiProperty>public boolean removeItemByKey(Long arg0)
removeItemByKey in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<Long,MapiProperty>public void set_Item(Long arg0, MapiProperty arg1)
set_Item in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<Long,MapiProperty>public boolean tryGetValue(Long arg0, Object[] arg1)
tryGetValue in interface com.aspose.ms.System.Collections.Generic.IGenericDictionary<Long,MapiProperty>Copyright (c) 2008-2021 Aspose Pty Ltd. All Rights Reserved.