Redigera

Dela via


MediaTypeHeaderValue Class

Definition

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

public ref class MediaTypeHeaderValue
public ref class MediaTypeHeaderValue : ICloneable
public class MediaTypeHeaderValue
public class MediaTypeHeaderValue : ICloneable
type MediaTypeHeaderValue = class
type MediaTypeHeaderValue = class
    interface ICloneable
Public Class MediaTypeHeaderValue
Public Class MediaTypeHeaderValue
Implements ICloneable
Inheritance
MediaTypeHeaderValue
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)

Initializes a new instance of the MediaTypeHeaderValue class.

MediaTypeHeaderValue(String, String)

Initializes a new instance of the MediaTypeHeaderValue class.

MediaTypeHeaderValue(String)

Initializes a new instance of the MediaTypeHeaderValue class.

Properties

CharSet

Gets or sets the character set.

MediaType

Gets or sets the media-type header value.

Parameters

Gets or sets the media-type header value parameters.

Methods

Equals(Object)

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

GetHashCode()

Serves as a hash function for an MediaTypeHeaderValue object.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Parse(String)

Converts a string to an MediaTypeHeaderValue instance.

ToString()

Returns a string that represents the current MediaTypeHeaderValue object.

TryParse(String, MediaTypeHeaderValue)

Determines whether a string is valid MediaTypeHeaderValue information.

Explicit Interface Implementations

ICloneable.Clone()

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

Applies to