Share via


CookieState.Item Property

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

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

Syntax

'Declaration
Public Property Item ( _
    subName As String _
) As String 
    Get 
    Set
'Usage
Dim instance As CookieState 
Dim subName As String 
Dim value As String 

value = instance.Item(subName)

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

Parameters

Property Value

Type: System.String
The cookie value with the specified cookie name.

See Also

Reference

CookieState Class

System.Net.Http.Headers Namespace