Tnef Property WriterWrite Property Method
Write a property.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void WriteProperty(
TnefProperty property
)Parameters
- property TnefProperty
- The property.
Remarks
Writes a property and all of its values, such as a property that was read using ReadProperty(CancellationToken).
A named property is written using its Name, so it is assigned a new property id. A String8 value is encoded using the Codepage.
Exceptions
| ArgumentException |
The type of property cannot be written. -or- property is a named property without a name. -or- The value of property is not of the native type of the property. |
| ArgumentOutOfRangeException | A value of property cannot be represented by the property type. |
| ObjectDisposedException | The property writer has been disposed. |
| InvalidOperationException |
The previous property does not have the required number of values. -or- A row has not been started in a RecipientTable attribute. -or- The stream or writer for the previous value has not been disposed. |