new_for_type
Description:
[ CCode ( cname = "g_mime_object_new" ) ]
public static Object new_for_type (ParserOptions? options, ContentType content_type)
public static Object new_for_type (ParserOptions? options, ContentType content_type)
Performs a lookup of registered Object subclasses, registered using register_type, 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, Part.
Parameters:
options |
a ParserOptions or null |
content_type |
a ContentType object |
Returns:
an appropriate Object registered to handle MIME parts appropriate for
|