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
System_CAPS_pubmethod CookieState(String)

Initializes a new instance of the CookieState class.

System_CAPS_pubmethod CookieState(String, NameValueCollection)

Initializes a new instance of the CookieState class.

System_CAPS_pubmethod CookieState(String, String)

Initializes a new instance of the CookieState class.

Properties

Name Description
System_CAPS_pubproperty Item[String]

Gets or sets the cookie value with the specified cookie name, if the cookie data is structured.

System_CAPS_pubproperty Name

Gets or sets the name of the cookie.

System_CAPS_pubproperty Value

Gets or sets the cookie value, if cookie data is a simple string value.

System_CAPS_pubproperty Values

Gets or sets the collection of name-value pair, if the cookie data is structured.

Methods

Name Description
System_CAPS_pubmethod Clone()

Returns a new object that is a copy of the current instance.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod 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