Name
CookieCollection
Synopsis
This class is a specialized collection for holding cookies.
It’s used by HttpWebResponse
to represent a set
of cookies returned by a server. By default, the IsReadOnly
property is set to true
.
Public Class CookieCollection : Implements ICollection, IEnumerable ' Public Constructors Public Sub New() ' Public Instance Properties Public ReadOnly Property Count As Integer Implements ICollection.Count Public ReadOnly Property IsReadOnly As Boolean Public ReadOnly Property IsSynchronized As Boolean Implements ICollection.IsSynchronized Public Default ReadOnly Property Item( ByVal index As Integer) As Cookie Public Default ReadOnly Property Item( ByVal name As String) As Cookie Public ReadOnly Property SyncRoot As Object Implements ICollection.SyncRoot ' Public Instance Methods Public Sub Add( ByVal cookie As Cookie) Public Sub Add( ByVal cookies As CookieCollection) Public Sub CopyTo(ByVal array As Array, ByVal index As Integer) Implements ICollection.CopyTo Public Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator End Class
Returned By
CookieContainer.GetCookies()
, HttpWebResponse.Cookies
Passed To
CookieContainer.Add()
, HttpWebResponse.Cookies
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.