Name
ICollection
Synopsis
This interface defines the basic characteristics of collection objects and
implements three properties. Count
gets the number
of elements contained in a collection; IsSynchronized
indicates whether the collection is thread-safe, and SyncRoot
returns an object that synchronizes access to the collection (this is the object itself
if the implementing class does not provide
a Synchronized()
method). ICollection
also implements
the CopyTo()
method for copying elements to an Array
object at a specified index.
Public Interface ICollection : Implements IEnumerable ' Public Instance Properties Public ReadOnly Property Count As Integer Public ReadOnly Property IsSynchronized As Boolean Public ReadOnly Property SyncRoot As Object ' Public Instance Methods Public Sub CopyTo(ByVal array As Array, ByVal index As Integer) End Interface
Implemented By
Multiple types
Returned By
Multiple types
Passed To
ArrayList.{AddRange()
, ArrayList()
, InsertRange()
, SetRange()}
, Queue.Queue()
, Stack.Stack()
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.