TnefPropertyWriterDispose Method

Release all resources used by the TnefPropertyWriter object.

Definition

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

Implements

IDisposableDispose

Remarks

Completes the attribute.

If the attribute is incomplete (for example, because a single-valued property has no value or a value stream has not been disposed), the attribute is discarded and the next call to the TnefWriter throws an InvalidOperationException.

Exceptions

IOException An I/O error occurred while completing the buffered attribute.

See Also