new_for_type_str
Description:
[ CCode ( cname = "g_mime_object_new_type" ) ]
public static Object new_for_type_str (ParserOptions? options, string type, string subtype)
public static Object new_for_type_str (ParserOptions? options, string type, string subtype)
Performs a lookup of registered Object subclasses, registered using
register_type, to find an appropriate class capable of handling
MIME parts of type type
/subtype
.
If no class has been registered to handle that type, it looks for a registered class that can handle type
. If that also fails,
then it will use the generic part class, Part.
Parameters:
options |
a ParserOptions or null |
type |
mime type |
subtype |
mime subtype |
Returns:
an appropriate Object registered to handle mime-types of |