Share via


CookieHeaderValue.Item Property

Gets a shortcut to the cookie property.

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

Syntax

'Declaration
Public ReadOnly Property Item ( _
    name As String _
) As CookieState 
    Get
'Usage
Dim instance As CookieHeaderValue 
Dim name As String 
Dim value As CookieState 

value = instance.Item(name)
public CookieState this[
    string name
] { get; }
public:
property CookieState^ Item[String^ name] {
    CookieState^ get (String^ name);
}
member Item : CookieState
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: System.Net.Http.Headers.CookieState
The cookie value.

See Also

Reference

CookieHeaderValue Class

System.Net.Http.Headers Namespace