TnefWriterDispose Method

Release all resources used by the TnefWriter object.

Definition

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

Implements

IDisposableDispose

Remarks

Writes the stream header and any buffered attributes to the output stream, flushes it and, unless the writer was created with leaveOpen set to , disposes it.

If the stream or property writer of an attribute has not been disposed, that attribute is discarded.

Call Flush or FlushAsync(CancellationToken) before disposing the writer in order to observe errors.

See Also