Represents a string header value with an optional quality.
Assembly: System.Net.Http (in System.Net.Http.dll)
Thetype exposes the following members.
|Equals||Determines whether the specified Object is equal to the current object. (Overrides Object.Equals(Object).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for an object. (Overrides Object.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|Parse||Converts a string to an instance.|
|ToString||Returns a string that represents the current object. (Overrides Object.ToString().)|
|TryParse||Determines whether a string is valid information.|
The class provides support for strings with a quality factor used in some headers as defined in RFC 2616 by the IETF.
Quality factors allow the user agent to indicate the relative degree of preference for various options in various headers including the Accept, Accept-Charset, Accept-Encoding, and Accept-Language headers. Quality uses a scale from 0 to 1. The default value is q=1.