| ContentTypeIsMimeType Method |
Check if the this instance of
ContentType matches
the specified MIME media type and subtype.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public bool IsMimeType(
string mediaType,
string mediaSubtype
)
Parameters
- mediaType String
- The media type.
- mediaSubtype String
- The media subtype.
Return Value
Booleantrue if the
ContentType matches the
provided media type and subtype.
Exceptions Remarks
If the specified mediaType or mediaSubtype
are "*", they match anything.
See Also