contentTypeEquals

Compares two content types for equality.

bool
contentTypeEquals
(
string type1
,
string type2
)

Parameters

type1 string

a content type string

type2 string

a content type string

Return Value

Type: bool

true if the two strings are identical or equivalent, false otherwise.