CookieHeaderValue Constructor (String, NameValueCollection)
Initializes a new instance of the CookieHeaderValue 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 CookieHeaderValue(name, values)
public CookieHeaderValue(
string name,
NameValueCollection values
)
public:
CookieHeaderValue(
String^ name,
NameValueCollection^ values
)
new :
name:string *
values:NameValueCollection -> CookieHeaderValue
public function CookieHeaderValue(
name : String,
values : NameValueCollection
)
Parameters
name
Type: System.StringThe value of the name.
values
Type: System.Collections.Specialized.NameValueCollectionThe values.