CookieState Class
Contains cookie name and its associated cookie state.
Namespace: System.Net.Http.Headers
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Inheritance Hierarchy
System.Object
System.Net.Http.Headers.CookieState
Syntax
[DefaultMemberAttribute("Item")]
public class CookieState : ICloneable
[DefaultMemberAttribute("Item")]
public ref class CookieState : ICloneable
[<DefaultMemberAttribute("Item")>]
type CookieState =
class
interface ICloneable
end
<DefaultMemberAttribute("Item")>
Public Class CookieState
Implements ICloneable
Constructors
Name | Description | |
---|---|---|
CookieState(String) | Initializes a new instance of the CookieState class. |
|
CookieState(String, NameValueCollection) | Initializes a new instance of the CookieState class. |
|
CookieState(String, String) | Initializes a new instance of the CookieState class. |
Properties
Name | Description | |
---|---|---|
Item[String] | Gets or sets the cookie value with the specified cookie name, if the cookie data is structured. |
|
Name | Gets or sets the name of the cookie. |
|
Value | Gets or sets the cookie value, if cookie data is a simple string value. |
|
Values | Gets or sets the collection of name-value pair, if the cookie data is structured. |
Methods
Name | Description | |
---|---|---|
Clone() | Returns a new object that is a copy of the current instance. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | Returns the string representation the current object.(Overrides Object.ToString().) |
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