TnefWriterWriteAttribute(TnefAttributeTag, DateTime) Method

Write an attribute with a date value.

Definition

Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public void WriteAttribute(
	TnefAttributeTag tag,
	DateTime value
)

Parameters

tag  TnefAttributeTag
The attribute tag.
value  DateTime
The value.

Remarks

Writes an attribute with a Date type.

The date and time components of value are written as-is, without converting them to another time zone.

Exceptions

ArgumentException

tag is not an attribute that can be written.

-or-

The value of tag is not a date.

ObjectDisposedException The writer has been disposed.
InvalidOperationException

The attribute cannot be written at this point in the stream.

-or-

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

IOException An I/O error occurred.

See Also