CookieCollection.Item Property (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the Cookie with a specific index from a CookieCollection.

Namespace:   System.Net
Assembly:  System (in System.dll)

member Item : 
        index:int -> Cookie with get

Parameters

index
Type: System.Int32

The zero-based index of the Cookie to be found.

Property Value

Type: System.Net.Cookie

A Cookie with a specific index from a CookieCollection.

Exception Condition
ArgumentOutOfRangeException

index is less than 0 or index is greater than or equal to Count.

You can use this to iterate over the contents of a CookieCollection.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: