Specifies the Content-Type HTTP header value for the response of the content. If this attribute is omitted, "text/html" is set as the content type by default.

public MediaTypeAttribute(string mediaType)

Parameters

mediaType string

The HTTP Content-Type value.

In this article