StringWithQualityHeaderValue Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a string header value with an optional quality.
public ref class StringWithQualityHeaderValue
public ref class StringWithQualityHeaderValue : ICloneable
public class StringWithQualityHeaderValue
public class StringWithQualityHeaderValue : ICloneable
type StringWithQualityHeaderValue = class
type StringWithQualityHeaderValue = class
interface ICloneable
Public Class StringWithQualityHeaderValue
Public Class StringWithQualityHeaderValue
Implements ICloneable
- Inheritance
-
StringWithQualityHeaderValue
- Implements
The StringWithQualityHeaderValue 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.
String |
Initializes a new instance of the StringWithQualityHeaderValue class. |
String |
Initializes a new instance of the StringWithQualityHeaderValue class. |
Quality |
Gets the quality factor from the StringWithQualityHeaderValue object. |
Value |
Gets the string value from the StringWithQualityHeaderValue object. |
Equals(Object) |
Determines whether the specified Object is equal to the current StringWithQualityHeaderValue object. |
Get |
Serves as a hash function for an StringWithQualityHeaderValue object. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Parse(String) |
Converts a string to an StringWithQualityHeaderValue instance. |
To |
Returns a string that represents the current StringWithQualityHeaderValue object. |
Try |
Determines whether a string is valid StringWithQualityHeaderValue information. |
ICloneable. |
Creates a new object that is a copy of the current StringWithQualityHeaderValue instance. |
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: