TnefPropertyReaderReadValueAsInt16 Method

Read the current value as a 16-bit integer.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public short ReadValueAsInt16()

Return Value

Int16
The value as a 16-bit integer.

Remarks

Reads any numeric value as a 16-bit integer.

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 16-bit integer.

See Also