## MapiPropertyCollection.TryGetValue method

Gets the property with the specified tag, if there is one.

```csharp
public bool TryGetValue(long key, out MapiProperty value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| key | Int64 | The tag of the property. |
| value | MapiProperty& | When this method returns, the property, or `null` if the collection does not contain it. |

### Return Value

`true` if the collection contains the property; otherwise, `false`.

### See Also

* class [MapiProperty](../../mapiproperty/)
* class [MapiPropertyCollection](../)
* namespace [Aspose.Email.Mapi](../../mapipropertycollection/)
* assembly [Aspose.Email](../../../)


