MimeReader.ReadNextPart method

The ReadNextPart method moves to the next part in the MIME source stream.

Namespace:  Microsoft.Exchange.Data.Mime
Assembly:  Microsoft.Exchange.Data.Common (in Microsoft.Exchange.Data.Common.dll)

public bool ReadNextPart()

Return value

Type: System.Boolean
The ReadHeaders method returns true if it successfully moved to the next part. If there are no parts left to move to, the ReadHeaders method moves to the end of the MIME message and returns false.

The hierarchical relationship of the next part to the current part is irrelevant to where the ReadNextPart method moves. The ReadNextPart method will move to the part that is sequentially next in the source MIME message.

Show: