Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Net.​Http.​Headers.​MediaTypeWithQualityHeaderValue

Assembly: System.Net.Http

Inheritance: object → MediaTypeHeaderValue → MediaTypeWithQualityHeaderValue

Implemented Interfaces

Represents a media type with an additional quality factor used in a Content-Type header.

Properties

public double?
Quality
Gets or sets the quality value for the <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> .
public string
CharSet
Gets or sets the character set.
public string
MediaType
Gets or sets the media-type header value.
Gets or sets the media-type header value parameters.

Methods

Parse​(string input)
Converts a string to an <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> instance.
Returns A <see cref="T:System.Net.Http.Headers.MediaTypeWithQualityHeaderValue" /> instance.
input A string that represents media type with quality header value information.
public static bool
TryParse​(string input, MediaTypeWithQualityHeaderValue& parsedValue)
public bool
Equals​(object obj)
Inherited from MediaTypeHeaderValue
Determines whether the specified <see cref="T:System.Object" /> is equal to the current <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> object.
Returns <see langword="true" /> if the specified <see cref="T:System.Object" /> is equal to the current object; otherwise, <see langword="false" /> .
obj The object to compare with the current object.
public int
GetHashCode​()
Inherited from MediaTypeHeaderValue
Serves as a hash function for an <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> object.
Returns A hash code for the current object.
public string
ToString​()
Inherited from MediaTypeHeaderValue
Returns a string that represents the current <see cref="T:System.Net.Http.Headers.MediaTypeHeaderValue" /> object.
Returns A string that represents the current object.
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object