## MessageObjectPropertiesCollection.TryGetValue method

Tries to get value, by specified key.

```csharp
public MessageObjectProperty TryGetValue(long propertyTag)
```

| Parameter | Type | Description |
| --- | --- | --- |
| propertyTag | Int64 | The property tag. |

### Return Value

[`MessageObjectProperty`](../../messageobjectproperty/) object if operation succeeds, otherwise null.

### See Also

* class [MessageObjectProperty](../../messageobjectproperty/)
* class [MessageObjectPropertiesCollection](../)
* namespace [Aspose.Email.Mapi.Msg](../../messageobjectpropertiescollection/)
* assembly [Aspose.Email](../../../)


