CookieHeaderValue Class
Provides value for the cookie header.
Inheritance Hierarchy
System.Object
System.Net.Http.Headers.CookieHeaderValue
Namespace: System.Net.Http.Headers
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Class CookieHeaderValue _
Implements ICloneable
'Usage
Dim instance As CookieHeaderValue
public class CookieHeaderValue : ICloneable
public ref class CookieHeaderValue : ICloneable
type CookieHeaderValue =
class
interface ICloneable
end
public class CookieHeaderValue implements ICloneable
The CookieHeaderValue type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
CookieHeaderValue() | Initializes a new instance of the CookieHeaderValue class. |
![]() |
CookieHeaderValue(String, NameValueCollection) | Initializes a new instance of the CookieHeaderValue class. |
![]() |
CookieHeaderValue(String, String) | Initializes a new instance of the CookieHeaderValue class. |
Top
Properties
Name | Description | |
---|---|---|
![]() |
Cookies | Gets a collection of cookies sent by the client. |
![]() |
Domain | Gets or sets the domain to associate the cookie with. |
![]() |
Expires | Gets or sets the expiration date and time for the cookie. |
![]() |
HttpOnly | Gets or sets a value that specifies whether a cookie is accessible by client-side script. |
![]() |
Item | Gets a shortcut to the cookie property. |
![]() |
MaxAge | Gets or sets the maximum age permitted for a resource. |
![]() |
Path | Gets or sets the virtual path to transmit with the current cookie. |
![]() |
Secure | Gets or sets a value indicating whether to transmit the cookie using Secure Sockets Layer (SSL)—that is, over HTTPS only. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Clone | Creates a shallow copy of the cookie value. |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Overrides Object.ToString().) |
![]() ![]() |
TryParse | Indicates a value whether the string representation will be converted. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.