TnefPropertyWriterWriteValue(String) Method

Write a string value.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void WriteValue(
	string value
)

Parameters

value  String
The value.

Remarks

Writes a value of a String8 or Unicode property, terminated by a nul character.

A String8 value is encoded using the Codepage and a Unicode value is encoded using UTF-16LE.

Exceptions

ArgumentNullException value is .
ObjectDisposedException The property writer has been disposed.
InvalidOperationException

The current property is not a String8 or Unicode property.

-or-

The current property already has a value.

-or-

The stream or writer for the previous value has not been disposed.

See Also