Click or drag to resize
MimeKit

MimeEntityToString Method

Return a String that represents the MimeEntity for debugging purposes.

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

Return Value

String
A String that represents the MimeEntity for debugging purposes.
Exceptions
ExceptionCondition
ObjectDisposedException The MimeEntity has been disposed.
Remarks

Returns a String that represents the MimeEntity for debugging purposes.

Caution note  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.

See Also