Redigera

Dela via


StringWithQualityHeaderValue Class

Definition

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

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, Double)

Initializes a new instance of the StringWithQualityHeaderValue class.

StringWithQualityHeaderValue(String)

Initializes a new instance of the StringWithQualityHeaderValue class.

Properties

Quality

Gets the quality factor from the StringWithQualityHeaderValue object.

Value

Gets the string value from the StringWithQualityHeaderValue object.

Methods

Equals(Object)

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

GetHashCode()

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

ToString()

Returns a string that represents the current StringWithQualityHeaderValue object.

TryParse(String, StringWithQualityHeaderValue)

Determines whether a string is valid StringWithQualityHeaderValue information.

Explicit Interface Implementations

ICloneable.Clone()

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

Applies to