MimeEntityToString Method

Return a String that represents the MimeEntity for debugging purposes.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public override string ToString()

Return Value

String
A String that represents the MimeEntity for debugging purposes.

Remarks

Returns a String that represents the MimeEntity for debugging purposes.

  Caution

In general, the string returned from this method SHOULD NOT be used for serializing the entity to disk. It is recommended that you use WriteTo(Stream, CancellationToken) instead.

If this method is used for serializing the entity to disk, the iso-8859-1 text encoding should be used for conversion.

Exceptions

ObjectDisposedException The MimeEntity has been disposed.

See Also