StringWithQualityHeaderValue StringWithQualityHeaderValue StringWithQualityHeaderValue StringWithQualityHeaderValue Class

Definición

Representa un valor de encabezado de cadena con una calidad opcional.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
Herencia
StringWithQualityHeaderValueStringWithQualityHeaderValueStringWithQualityHeaderValueStringWithQualityHeaderValue
Implementaciones

Comentarios

El StringWithQualityHeaderValue proporciona compatibilidad para las cadenas con un factor de calidad utilizado en algunos encabezados como se define en RFC 2616 por el IETF.The StringWithQualityHeaderValue class provides support for strings with a quality factor used in some headers as defined in RFC 2616 by the IETF.

Factores de calidad que el agente de usuario indicar el grado relativo de preferencia de distintas opciones en varios encabezados incluidos el Accept, Accept-Charset, Accept codificación y los encabezados Accept-Language.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. Calidad utiliza una escala de 0 a 1.Quality uses a scale from 0 to 1. El valor predeterminado es q = 1.The default value is q=1.

Constructores

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

Inicializa una nueva instancia de la clase StringWithQualityHeaderValue.Initializes a new instance of the StringWithQualityHeaderValue class.

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

Inicializa una nueva instancia de la clase StringWithQualityHeaderValue.Initializes a new instance of the StringWithQualityHeaderValue class.

Propiedades

Quality Quality Quality Quality

Obtiene el factor de calidad del objeto StringWithQualityHeaderValue.Gets the quality factor from the StringWithQualityHeaderValue object.

Value Value Value Value

Obtiene el valor de cadena del objeto StringWithQualityHeaderValue.Gets the string value from the StringWithQualityHeaderValue object.

Métodos

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

Determina si el objeto especificado es igual al objeto StringWithQualityHeaderValue actual.Determines whether the specified Object is equal to the current StringWithQualityHeaderValue object.

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

Sirve como función hash de un objeto StringWithQualityHeaderValue.Serves as a hash function for an StringWithQualityHeaderValue object.

GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
Parse(String) Parse(String) Parse(String) Parse(String)

Convierte una cadena en una instancia de StringWithQualityHeaderValue.Converts a string to an StringWithQualityHeaderValue instance.

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

Devuelve una cadena que representa el actual objeto StringWithQualityHeaderValue.Returns a string that represents the current StringWithQualityHeaderValue object.

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

Determina si una cadena es una información de StringWithQualityHeaderValue válida.Determines whether a string is valid StringWithQualityHeaderValue information.

Implementaciones de interfaz explícitas

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

Crea un nuevo objeto que es una copia de la instancia de StringWithQualityHeaderValue actual.Creates a new object that is a copy of the current StringWithQualityHeaderValue instance.

Se aplica a