Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Net.​Http.​Headers.​EntityTagHeaderValue

Assembly: Microsoft.Net.Http.Headers

Inheritance: object → EntityTagHeaderValue

Represents an entity-tag ( <c>etag</c> ) header value.

Properties

public static EntityTagHeaderValue
Any
Gets the "any" etag.
Gets the quoted tag.
public bool
IsWeak
Gets a value that determines if the entity-tag header is a weak validator.

Methods

public string
ToString​()
public bool
Equals​(object obj)
Check against another <see cref="T:Microsoft.Net.Http.Headers.EntityTagHeaderValue" /> for equality. This equality check should not be used to determine if two values match under the RFC specifications ( <see href="https://tools.ietf.org/html/rfc7232#section-2.3.2" /> ).
Returns <c>true</c> if the strength and tag of the two values match, <c>false</c> if the other value is null, is not an <see cref="T:Microsoft.Net.Http.Headers.EntityTagHeaderValue" /> , or if there is a mismatch of strength or tag between the two values.
obj The other value to check against for equality.
public int
GetHashCode​()
public bool
Compare​(EntityTagHeaderValue other, bool useStrongComparison)
Compares against another <see cref="T:Microsoft.Net.Http.Headers.EntityTagHeaderValue" /> to see if they match under the RFC specifications ( <see href="https://tools.ietf.org/html/rfc7232#section-2.3.2" /> ).
Returns <c>true</c> if the <see cref="T:Microsoft.Net.Http.Headers.EntityTagHeaderValue" /> match for the given comparison type, <c>false</c> if the other value is null or the comparison failed.
other The other <see cref="T:Microsoft.Net.Http.Headers.EntityTagHeaderValue" /> to compare against.
useStrongComparison <c>true</c> to use a strong comparison, <c>false</c> to use a weak comparison
public static EntityTagHeaderValue
Parse​(Extensions.​Primitives.​StringSegment input)
Parses <paramref name="input" /> as a <see cref="T:Microsoft.Net.Http.Headers.EntityTagHeaderValue" /> value.
Returns The parsed values.
input The values to parse.
public static bool
TryParse​(Extensions.​Primitives.​StringSegment input, EntityTagHeaderValue& parsedValue)
ParseList​(System.​Collections.​Generic.​IList?<​string> inputs)
Parses a sequence of inputs as a sequence of <see cref="T:Microsoft.Net.Http.Headers.EntityTagHeaderValue" /> values.
Returns The parsed values.
inputs The values to parse.
ParseStrictList​(System.​Collections.​Generic.​IList?<​string> inputs)
Parses a sequence of inputs as a sequence of <see cref="T:Microsoft.Net.Http.Headers.EntityTagHeaderValue" /> values using string parsing rules.
Returns The parsed values.
inputs The values to parse.
public static bool
TryParseList​(System.​Collections.​Generic.​IList?<​string> inputs, System.​Collections.​Generic.​IList`1&? parsedValues)
public static bool
TryParseStrictList​(System.​Collections.​Generic.​IList?<​string> inputs, System.​Collections.​Generic.​IList`1&? parsedValues)
protected void
Finalize​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object