.NET API Reference

System.Net.Http.Headers.MediaTypeHeaderValue

MediaTypeHeaderValue Class

Represents a media type header value.

This class represents a media type, such as "text/plain" or "application/json". It includes the media type itself (e.g., "text/html") and any parameters associated with it (e.g., "charset=utf-8").

Namespace: System.Net.Http.Headers

Assembly: System.Net.Http.dll

Syntax

public sealed class MediaTypeHeaderValue : IEquatable<MediaTypeHeaderValue>, ICloneable

Constructors

Properties

Methods

Implements

IEquatable<MediaTypeHeaderValue>, ICloneable