ICollection Interface

Definition

Defines size, enumerators, and synchronization methods for all collections.

public interface class ICollection : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("2D8DD713-F25D-42B4-98EE-62DFD56B1C45")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface ICollection : System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("2D8DD713-F25D-42B4-98EE-62DFD56B1C45")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type ICollection = interface
    interface IEnumerable
Public Interface ICollection
Implements IEnumerable
Attributes
Implements

Properties

Count

When implemented by a class, gets the number of elements contained in the ICollection.

Methods

AddAt(Object, Object)

Adds an item to a collection at a position.

AddItem(Object)

Adds an item to a collection.

GetEnumerator()

Gets a list of items in a collection.

item(Object)

Gets an item from a collection.

Applies to