is_type


Description:

public bool is_type (string type, string subtype)

Compares the given type and subtype with that of the given mime type object.

Parameters:

this

a ContentType

type

MIME type to compare against

subtype

MIME subtype to compare against

Returns:

true if the MIME types match or false otherwise. You may use "*" in place of type and/or subtype as a wilcard.