MsgPropertyCollection.TryGetValue Method
Namespace: Rebex.Mail
Assembly: Rebex.Msg.dll (version 7.0.9083)
TryGetValue<T>(MsgPropertyTag, out T)
Gets the value of a property specified by the property Tag.
Declaration
public bool TryGetValue<T>(MsgPropertyTag tag, out T value)
Parameters
Type | Name | Description |
---|---|---|
MsgPropertyTag | tag | Tag of the property to return. |
T | value | Contains the value of the property, if the property is present and has appropriate data type. |
Returns
Type | Description |
---|---|
Boolean | True if the property with appropriate data type is present; false otherwise. |
Type Parameters
Name | Description |
---|---|
T | Type of the value to return. |