Compartir a través de


EntityTagHeaderValue.Compare(EntityTagHeaderValue, Boolean) Método

Definición

Compara con otro EntityTagHeaderValue para ver si coinciden con las especificaciones rfC (https://tools.ietf.org/html/rfc7232#section-2.3.2).

public:
 bool Compare(Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ other, bool useStrongComparison);
public bool Compare (Microsoft.Net.Http.Headers.EntityTagHeaderValue other, bool useStrongComparison);
public bool Compare (Microsoft.Net.Http.Headers.EntityTagHeaderValue? other, bool useStrongComparison);
member this.Compare : Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> bool
Public Function Compare (other As EntityTagHeaderValue, useStrongComparison As Boolean) As Boolean

Parámetros

other
EntityTagHeaderValue

El otro EntityTagHeaderValue con el que se va a comparar.

useStrongComparison
Boolean

true para usar una comparación sólida, false para usar una comparación débil

Devoluciones

true si coincide con EntityTagHeaderValue el tipo de comparación especificado, false si el otro valor es null o se produjo un error en la comparación.

Se aplica a