Tnef Property SetTry Get Value(Tnef Property Tag, Tnef Property) Method
Try to get the property with the specified tag.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the property was found; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public bool TryGetValue(
TnefPropertyTag tag,
out TnefProperty property
)Parameters
- tag TnefPropertyTag
- The property tag.
- property TnefProperty
- The property, if found.
Return Value
Booleanif the property was found; otherwise, .
Remarks
Gets the first property with the same property id as tag, regardless of its type. This allows, for example, SubjectW to match a subject that was written as a String8 value.
The ids of named properties are only meaningful within the TNEF stream that they were read from. Use TryGetValue(TnefNameId, TnefProperty) to look up named properties.