CookieState Class

Contains cookie name and its associated cookie state.

Inheritance Hierarchy

System.Object
  System.Net.Http.Headers.CookieState

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

Syntax

'Declaration
Public Class CookieState _
    Implements ICloneable
'Usage
Dim instance As CookieState
public class CookieState : ICloneable
public ref class CookieState : ICloneable
type CookieState =  
    class 
        interface ICloneable 
    end
public class CookieState implements ICloneable

The CookieState type exposes the following members.

Constructors

  Name Description
Public method CookieState(String) Initializes a new instance of the CookieState class.
Public method CookieState(String, NameValueCollection) Initializes a new instance of the CookieState class.
Public method CookieState(String, String) Initializes a new instance of the CookieState class.

Top

Properties

  Name Description
Public property Item Gets or sets the cookie value with the specified cookie name, if the cookie data is structured.
Public property Name Gets or sets the name of the cookie.
Public property Value Gets or sets the cookie value, if cookie data is a simple string value.
Public property Values Gets or sets the collection of name-value pair, if the cookie data is structured.

Top

Methods

  Name Description
Public method Clone Returns a new object that is a copy of the current instance.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns the string representation the current object. (Overrides Object.ToString().)

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.

See Also

Reference

System.Net.Http.Headers Namespace