Share via


CookieState Constructor (String, NameValueCollection)

Initializes a new instance of the CookieState class.

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

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    values As NameValueCollection _
)
'Usage
Dim name As String 
Dim values As NameValueCollection 

Dim instance As New CookieState(name, values)
public CookieState(
    string name,
    NameValueCollection values
)
public:
CookieState(
    String^ name, 
    NameValueCollection^ values
)
new : 
        name:string * 
        values:NameValueCollection -> CookieState
public function CookieState(
    name : String, 
    values : NameValueCollection
)

Parameters

See Also

Reference

CookieState Class

CookieState Overload

System.Net.Http.Headers Namespace