ProductInfoHeaderValue Classe

Definição

Representa um valor que pode ser um produto ou um comentário em um cabeçalho de Agente do Usuário.Represents a value which can either be a product or a comment in a User-Agent header.

public ref class ProductInfoHeaderValue
public ref class ProductInfoHeaderValue : ICloneable
public class ProductInfoHeaderValue
public class ProductInfoHeaderValue : ICloneable
type ProductInfoHeaderValue = class
type ProductInfoHeaderValue = class
    interface ICloneable
Public Class ProductInfoHeaderValue
Public Class ProductInfoHeaderValue
Implements ICloneable
Herança
ProductInfoHeaderValue
Implementações

Comentários

A ProductInfoHeaderValue classe fornece suporte para os valores de tokens de produto e comentário usados em um cabeçalho User-Agent, conforme definido no RFC 2616 pela IETF.The ProductInfoHeaderValue class provides support for the product and comment tokens values used in a User-Agent header as defined in RFC 2616 by the IETF.

O campo User-Agent contém informações sobre o agente do usuário que originou a solicitação.The User-Agent field contains information about the user agent originating the request. O campo pode conter vários tokens de produto e comentários que identificam o agente do usuário e quaisquer subprodutos.The field can contain multiple product tokens and comments identifying the user agent and any sub-products.

Construtores

ProductInfoHeaderValue(ProductHeaderValue)

Inicializa uma nova instância da classe ProductInfoHeaderValue.Initializes a new instance of the ProductInfoHeaderValue class.

ProductInfoHeaderValue(String)

Inicializa uma nova instância da classe ProductInfoHeaderValue.Initializes a new instance of the ProductInfoHeaderValue class.

ProductInfoHeaderValue(String, String)

Inicializa uma nova instância da classe ProductInfoHeaderValue.Initializes a new instance of the ProductInfoHeaderValue class.

Propriedades

Comment

Obtém o comentário do objeto ProductInfoHeaderValue.Gets the comment from the ProductInfoHeaderValue object.

Product

Obtém o produto do objeto ProductInfoHeaderValue.Gets the product from the ProductInfoHeaderValue object.

Métodos

Equals(Object)

Determina se o Object especificado é igual ao objeto ProductInfoHeaderValue atual.Determines whether the specified Object is equal to the current ProductInfoHeaderValue object.

GetHashCode()

Funciona como uma função de hash para um objeto ProductInfoHeaderValue.Serves as a hash function for an ProductInfoHeaderValue object.

GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
Parse(String)

Converte uma cadeia de caracteres em uma instância ProductInfoHeaderValue.Converts a string to an ProductInfoHeaderValue instance.

ToString()

Retorna uma cadeia de caracteres que representa o objeto ProductInfoHeaderValue atual.Returns a string that represents the current ProductInfoHeaderValue object.

TryParse(String, ProductInfoHeaderValue)

Determina se uma cadeia de caracteres é uma informação ProductInfoHeaderValue válida.Determines whether a string is valid ProductInfoHeaderValue information.

Implantações explícitas de interface

ICloneable.Clone()

Cria um novo objeto que é uma cópia da instância ProductInfoHeaderValue atual.Creates a new object that is a copy of the current ProductInfoHeaderValue instance.

Aplica-se a