Tnef Property ReaderRead Value As Date Time Method
Read the current value as a date and time.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The value as a date and time.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public DateTime ReadValueAsDateTime()Return Value
DateTimeThe value as a date and time.
Remarks
Reads any AppTime or SysTime value as a DateTime.
Values of type SysTime are FILETIME values and are therefore returned with a Kind of Utc.
If the value is out of range, a InvalidDate issue is reported and default (DateTime) is returned.
Exceptions
| ObjectDisposedException | The TnefReader has been disposed. |
| InvalidOperationException |
The TnefReader has been advanced to another attribute. -or- The reader is not positioned on a value. -or- The value cannot be read as a date and time. |