Delen via


CookieHeaderValue Class

Definition

Represents the HTTP request Cookie header.

public ref class CookieHeaderValue
public class CookieHeaderValue
type CookieHeaderValue = class
Public Class CookieHeaderValue
Inheritance
CookieHeaderValue

Constructors

CookieHeaderValue(String, String)
CookieHeaderValue(String)
CookieHeaderValue(StringSegment, StringSegment)

Initializes a new instance of CookieHeaderValue.

CookieHeaderValue(StringSegment)

Initializes a new instance of CookieHeaderValue.

Properties

Name

Gets or sets the cookie name.

Value

Gets or sets the cookie value.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

Parse(String)
Parse(StringSegment)

Parses input as a CookieHeaderValue value.

ParseList(IList<String>)

Parses a sequence of inputs as a sequence of CookieHeaderValue values.

ParseStrictList(IList<String>)

Parses a sequence of inputs as a sequence of CookieHeaderValue values using string parsing rules.

ToString()

Returns a string that represents the current object.

TryParse(String, CookieHeaderValue)
TryParse(StringSegment, CookieHeaderValue)

Attempts to parse the specified input as a CookieHeaderValue.

TryParseList(IList<String>, IList<CookieHeaderValue>)

Attempts to parse the sequence of values as a sequence of CookieHeaderValue.

TryParseStrictList(IList<String>, IList<CookieHeaderValue>)

Attempts to parse the sequence of values as a sequence of CookieHeaderValue using string parsing rules.

Applies to