Determines if the supplied media type equals the media type of the content.
- Namespace
- Statiq
.Common - Containing Type
- IDocumentExtensions
Syntax
public static bool MediaTypeEquals(this IDocument document, string mediaType)
Parameters
Name | Type | Description |
---|---|---|
document | IDocument | The document. |
mediaType | string | The media type to check. |
Return Value
Type | Description |
---|---|
bool | true if the media types are equal, false otherwise. |