Tnef Property WriterWrite Value(Decimal) Method
Write a currency 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(
decimal value
)Parameters
- value Decimal
- The value.
Remarks
Writes a value of a Currency property. The value is scaled by 10000 and
rounded to the nearest integer (rounding to even), as required by the 64-bit fixed-point format defined
by [MS-OXCDATA].
Exceptions
| ArgumentOutOfRangeException | value cannot be represented as a currency value. |
| ObjectDisposedException | The property writer has been disposed. |
| InvalidOperationException |
The current property is not a Currency property. -or- The current property already has a value. -or- The stream or writer for the previous value has not been disposed. |