
**Inheritance:**
java.lang.Object, com.aspose.ms.System.Collections.ObjectModel.Collection, com.aspose.ms.System.Collections.ObjectModel.KeyedCollection
```
public final class MessageObjectPropertiesCollection extends System.Collections.ObjectModel.KeyedCollection<Long,MessageObjectProperty>
```

Represents a keyed collection for [MessageObjectProperty](../../com.aspose.email/messageobjectproperty) objects.
## Constructors

| Constructor | Description |
| --- | --- |
| [MessageObjectPropertiesCollection()](#MessageObjectPropertiesCollection--) |  |
## Methods

| Method | Description |
| --- | --- |
| [add(MessageObjectProperty item)](#add-com.aspose.email.MessageObjectProperty-) | add. |
| [addItem(T arg0)](#addItem-T-) |  |
| [clear()](#clear--) |  |
| [containsItem(T arg0)](#containsItem-T-) |  |
| [containsKey(TKey arg0)](#containsKey-TKey-) |  |
| [copyToTArray(T[] arg0, int arg1)](#copyToTArray-T---int-) |  |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getComparer()](#getComparer--) |  |
| [getICollection()](#getICollection--) |  |
| [getIList()](#getIList--) |  |
| [getSyncRoot()](#getSyncRoot--) |  |
| [get_Item(TKey arg0)](#get-Item-TKey-) |  |
| [get_Item(int arg0)](#get-Item-int-) |  |
| [hashCode()](#hashCode--) |  |
| [indexOfItem(T arg0)](#indexOfItem-T-) |  |
| [insertItem(int arg0, T arg1)](#insertItem-int-T-) |  |
| [insertItem(int arg0, TItem arg1)](#insertItem-int-TItem-) |  |
| [isReadOnly()](#isReadOnly--) |  |
| [iterator()](#iterator--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [removeAt(int arg0)](#removeAt-int-) |  |
| [removeByKey(TKey arg0)](#removeByKey-TKey-) |  |
| [removeItem(T arg0)](#removeItem-T-) |  |
| [setItem(int arg0, TItem arg1)](#setItem-int-TItem-) |  |
| [set_Item(int arg0, T arg1)](#set-Item-int-T-) |  |
| [size()](#size--) |  |
| [toString()](#toString--) |  |
| [tryGetValue(long propertyTag)](#tryGetValue-long-) | Tries to get value, by specified key. |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### MessageObjectPropertiesCollection() {#MessageObjectPropertiesCollection--}
```
public MessageObjectPropertiesCollection()
```


### add(MessageObjectProperty item) {#add-com.aspose.email.MessageObjectProperty-}
```
public void add(MessageObjectProperty item)
```


add.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| item | [MessageObjectProperty](../../com.aspose.email/messageobjectproperty) | a [MessageObjectProperty](../../com.aspose.email/messageobjectproperty) object. |

### addItem(T arg0) {#addItem-T-}
```
public void addItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

### clear() {#clear--}
```
public void clear()
```




### containsItem(T arg0) {#containsItem-T-}
```
public boolean containsItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
boolean
### containsKey(TKey arg0) {#containsKey-TKey-}
```
public boolean containsKey(TKey arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | TKey |  |

**Returns:**
boolean
### copyToTArray(T[] arg0, int arg1) {#copyToTArray-T---int-}
```
public void copyToTArray(T[] arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T[] |  |
| arg1 | int |  |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getComparer() {#getComparer--}
```
public System.Collections.Generic.IGenericEqualityComparer<TKey> getComparer()
```




**Returns:**
com.aspose.ms.System.Collections.Generic.IGenericEqualityComparer<TKey>
### getICollection() {#getICollection--}
```
public System.Collections.ICollection getICollection()
```




**Returns:**
com.aspose.ms.System.Collections.ICollection
### getIList() {#getIList--}
```
public System.Collections.IList getIList()
```




**Returns:**
com.aspose.ms.System.Collections.IList
### getSyncRoot() {#getSyncRoot--}
```
public Object getSyncRoot()
```




**Returns:**
java.lang.Object
### get_Item(TKey arg0) {#get-Item-TKey-}
```
public TItem get_Item(TKey arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | TKey |  |

**Returns:**
TItem
### get_Item(int arg0) {#get-Item-int-}
```
public TItem get_Item(int arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |

**Returns:**
TItem
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### indexOfItem(T arg0) {#indexOfItem-T-}
```
public int indexOfItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
int
### insertItem(int arg0, T arg1) {#insertItem-int-T-}
```
public void insertItem(int arg0, T arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | T |  |

### insertItem(int arg0, TItem arg1) {#insertItem-int-TItem-}
```
public void insertItem(int arg0, TItem arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | TItem |  |

### isReadOnly() {#isReadOnly--}
```
public boolean isReadOnly()
```




**Returns:**
boolean
### iterator() {#iterator--}
```
public System.Collections.Generic.IGenericEnumerator<T> iterator()
```




**Returns:**
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<T>
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### removeAt(int arg0) {#removeAt-int-}
```
public void removeAt(int arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |

### removeByKey(TKey arg0) {#removeByKey-TKey-}
```
public boolean removeByKey(TKey arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | TKey |  |

**Returns:**
boolean
### removeItem(T arg0) {#removeItem-T-}
```
public boolean removeItem(T arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | T |  |

**Returns:**
boolean
### setItem(int arg0, TItem arg1) {#setItem-int-TItem-}
```
public void setItem(int arg0, TItem arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | TItem |  |

### set_Item(int arg0, T arg1) {#set-Item-int-T-}
```
public void set_Item(int arg0, T arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | int |  |
| arg1 | T |  |

### size() {#size--}
```
public int size()
```




**Returns:**
int
### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### tryGetValue(long propertyTag) {#tryGetValue-long-}
```
public final MessageObjectProperty tryGetValue(long propertyTag)
```


Tries to get value, by specified key.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| propertyTag | long | The property tag. |

**Returns:**
[MessageObjectProperty](../../com.aspose.email/messageobjectproperty) - [MessageObjectProperty](../../com.aspose.email/messageobjectproperty) object if operation succeeds, otherwise null.
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final native void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

