ObjectWrap.this

Performs a lookup of registered #GMimeObject subclasses, registered using gmime.object.ObjectWrap.registerType, to find an appropriate class capable of handling MIME parts of the specified Content-Type. If no class has been registered to handle that type, it looks for a registered class that can handle content_type's media type. If that also fails, then it will use the generic part class, #GMimePart.

  1. this(void* ptr, Flag!"Take" take)
  2. this(gmime.parser_options.ParserOptions options, gmime.content_type.ContentType contentType)

Parameters

options gmime.parser_options.ParserOptions

a #GMimeParserOptions or null

contentType gmime.content_type.ContentType

a #GMimeContentType object

Return Value

an appropriate #GMimeObject registered to handle MIME parts appropriate for content_type.