Export (0) Print
Expand All

CookieHeaderValue Class

Provides value for the cookie header.


Namespace:  System.Net.Http.Headers
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

public class CookieHeaderValue : ICloneable

The CookieHeaderValue type exposes the following members.

Protected methodCookieHeaderValue()Initializes a new instance of the CookieHeaderValue class.
Public methodCookieHeaderValue(String, NameValueCollection)Initializes a new instance of the CookieHeaderValue class.
Public methodCookieHeaderValue(String, String)Initializes a new instance of the CookieHeaderValue class.

Public propertyCookiesGets a collection of cookies sent by the client.
Public propertyDomainGets or sets the domain to associate the cookie with.
Public propertyExpiresGets or sets the expiration date and time for the cookie.
Public propertyHttpOnlyGets or sets a value that specifies whether a cookie is accessible by client-side script.
Public propertyItemGets a shortcut to the cookie property.
Public propertyMaxAgeGets or sets the maximum age permitted for a resource.
Public propertyPathGets or sets the virtual path to transmit with the current cookie.
Public propertySecureGets or sets a value indicating whether to transmit the cookie using Secure Sockets Layer (SSL)—that is, over HTTPS only.

Public methodCloneCreates a shallow copy of the cookie value.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Overrides Object.ToString().)
Public methodStatic memberTryParseIndicates a value whether the string representation will be converted.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft