StringWithQualityHeaderValue StringWithQualityHeaderValue StringWithQualityHeaderValue StringWithQualityHeaderValue Class

Definition

Represents a string header value with an optional quality.

public ref class StringWithQualityHeaderValue : ICloneable
public class StringWithQualityHeaderValue : ICloneable
type StringWithQualityHeaderValue = class
    interface ICloneable
Public Class StringWithQualityHeaderValue
Implements ICloneable
Inheritance
StringWithQualityHeaderValueStringWithQualityHeaderValueStringWithQualityHeaderValueStringWithQualityHeaderValue
Implements

Remarks

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.

Constructors

StringWithQualityHeaderValue(String) StringWithQualityHeaderValue(String) StringWithQualityHeaderValue(String) StringWithQualityHeaderValue(String)

Initializes a new instance of the StringWithQualityHeaderValue class.

StringWithQualityHeaderValue(String, Double) StringWithQualityHeaderValue(String, Double) StringWithQualityHeaderValue(String, Double) StringWithQualityHeaderValue(String, Double)

Initializes a new instance of the StringWithQualityHeaderValue class.

Properties

Quality Quality Quality Quality

Gets the quality factor from the StringWithQualityHeaderValue object.

Value Value Value Value

Gets the string value from the StringWithQualityHeaderValue object.

Methods

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

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

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

Serves as a hash function for an StringWithQualityHeaderValue 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 StringWithQualityHeaderValue instance.

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

Returns a string that represents the current StringWithQualityHeaderValue object.

TryParse(String, StringWithQualityHeaderValue) TryParse(String, StringWithQualityHeaderValue) TryParse(String, StringWithQualityHeaderValue) TryParse(String, StringWithQualityHeaderValue)

Determines whether a string is valid StringWithQualityHeaderValue information.

Explicit Interface Implementations

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

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

Applies to