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)

Syntax

'Declaration
Public Function ReadNextPart As Boolean
'Usage
Dim instance As MimeReader
Dim returnValue As Boolean

returnValue = instance.ReadNextPart()
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.

Remarks

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.