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