CookieHeaderValue Class
Provides value for the cookie header.
Namespace: System.Net.Http.Headers
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Inheritance Hierarchy
System.Object
System.Net.Http.Headers.CookieHeaderValue
Syntax
[DefaultMemberAttribute("Item")]
public class CookieHeaderValue : ICloneable
[DefaultMemberAttribute("Item")]
public ref class CookieHeaderValue : ICloneable
[<DefaultMemberAttribute("Item")>]
type CookieHeaderValue =
class
interface ICloneable
end
<DefaultMemberAttribute("Item")>
Public Class CookieHeaderValue
Implements ICloneable
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. |
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[String] | 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. |
Methods
Name | Description | |
---|---|---|
Clone() | Creates a shallow copy of the cookie value. |
|
Equals(Object) | (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(String, CookieHeaderValue) | Indicates a value whether the string representation will be converted. |
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.
See Also
System.Net.Http.Headers Namespace
Return to top