OpenPop.NET POP3 Library Documentation

Message.FindFirstMessagePartWithMediaType Method

Finds the first MessagePart in the Message hierarchy with the given MediaType.

The search in the hierarchy is a depth-first traversal.

public MessagePart FindFirstMessagePartWithMediaType(
   string mediaType


The MediaType to search for. Case is ignored.

Return Value

A MessagePart with the given MediaType or a null reference if no such MessagePart was found

See Also

Message Class | OpenPop.Mime Namespace