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
name
Type: System.StringThe name of the cookie.
values
Type: System.Collections.Specialized.NameValueCollectionThe collection of name-value pair for the cookie.