Method IsMetafileContentType
IsMetafileContentType(string?)
Returns true when the content type names a metafile format, regardless of the bytes.
public static bool IsMetafileContentType(string? contentType)
Parameters
contentTypestringThe declared content type, or null.
Returns
- bool
True when the type is one of the EMF or WMF spellings in use.
Remarks
The comparison is ordinal and case-insensitive because a content type is ASCII by definition and an invariant casing rule keeps the tr-TR leg honest.