MediaTypeHeaderValue MediaTypeHeaderValue MediaTypeHeaderValue MediaTypeHeaderValue Class

Definition

Represents a media type used in a Content-Type header as defined in the RFC 2616.

public ref class MediaTypeHeaderValue : ICloneable
public class MediaTypeHeaderValue : ICloneable
type MediaTypeHeaderValue = class
    interface ICloneable
Public Class MediaTypeHeaderValue
Implements ICloneable
Inheritance
MediaTypeHeaderValueMediaTypeHeaderValueMediaTypeHeaderValueMediaTypeHeaderValue
Derived
Implements

Remarks

The MediaTypeHeaderValue class provides support for the media type used in a Content-Type header as defined in RFC 2616 by the IETF.

An example of a media-type would be "text/plain; charset=iso-8859-5.

Constructors

MediaTypeHeaderValue(MediaTypeHeaderValue) MediaTypeHeaderValue(MediaTypeHeaderValue) MediaTypeHeaderValue(MediaTypeHeaderValue) MediaTypeHeaderValue(MediaTypeHeaderValue)

Initializes a new instance of the MediaTypeHeaderValue class.

MediaTypeHeaderValue(String) MediaTypeHeaderValue(String) MediaTypeHeaderValue(String) MediaTypeHeaderValue(String)

Initializes a new instance of the MediaTypeHeaderValue class.

Properties

CharSet CharSet CharSet CharSet

Gets or sets the character set.

MediaType MediaType MediaType MediaType

Gets or sets the media-type header value.

Parameters Parameters Parameters Parameters

Gets or sets the media-type header value parameters.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified Object is equal to the current MediaTypeHeaderValue object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as a hash function for an MediaTypeHeaderValue object.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Parse(String) Parse(String) Parse(String) Parse(String)

Converts a string to an MediaTypeHeaderValue instance.

ToString() ToString() ToString() ToString()

Returns a string that represents the current MediaTypeHeaderValue object.

TryParse(String, MediaTypeHeaderValue) TryParse(String, MediaTypeHeaderValue) TryParse(String, MediaTypeHeaderValue) TryParse(String, MediaTypeHeaderValue)

Determines whether a string is valid MediaTypeHeaderValue information.

Explicit Interface Implementations

ICloneable.Clone() ICloneable.Clone() ICloneable.Clone() ICloneable.Clone()

Creates a new object that is a copy of the current MediaTypeHeaderValue instance.

Applies to