Tnef Property WriterWrite Value(Date Time) Method
Write a date and time value.
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 WriteValue(
DateTime value
)Parameters
- value DateTime
- The value.
Remarks
Writes a value of a SysTime or AppTime property.
A SysTime value is written in UTC. If the Kind of value is Local, it is converted to UTC; otherwise, it is assumed to already be in UTC. A AppTime value is written as-is.
Exceptions
| ArgumentOutOfRangeException | value is earlier than the earliest time that can be represented by the property type. |
| ObjectDisposedException | The property writer has been disposed. |
| InvalidOperationException |
The current property is not a SysTime or AppTime property. -or- The current property already has a value. -or- The stream or writer for the previous value has not been disposed. |