EntityTagHeaderValue.Compare(EntityTagHeaderValue, Boolean) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Porovná se s jinou EntityTagHeaderValue a zjistí, jestli odpovídají specifikacím 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
Parametry
- other
- EntityTagHeaderValue
EntityTagHeaderValue Druhý, který se má porovnat s.
- useStrongComparison
- Boolean
true použít silné porovnání, nepravda použít slabé porovnání
Návraty
true if the EntityTagHeaderValue match for the given comparison type, false if the other value is null or the comparison failed.