MimePartAccept Method

Dispatches to the specific visit method for this MIME entity.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public override void Accept(
	MimeVisitor visitor
)

Parameters

visitor  MimeVisitor
The visitor.

Implements

IMimeEntityAccept(MimeVisitor)
IMimeEntityAccept(MimeVisitor)

Remarks

This default implementation for MimePart nodes calls VisitMimePart(MimePart). Override this method to call into a more specific method on a derived visitor class of the MimeVisitor class. However, it should still support unknown visitors by calling VisitMimePart(MimePart).

Exceptions

ArgumentNullException visitor is .
ObjectDisposedException The MimePart has been disposed.

See Also