ICollection ICollection ICollection 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.FDual | System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable)]
public interface ICollection : System.Collections.IEnumerable
type ICollection = interface
    interface IEnumerable
Public Interface ICollection
Implements IEnumerable
Attributes
Implements

Properties

Count Count Count Count

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

Methods

AddAt(Object, Object) AddAt(Object, Object) AddAt(Object, Object) AddAt(Object, Object)

Adds an item to a collection at a position.

AddItem(Object) AddItem(Object) AddItem(Object) AddItem(Object)

Adds an item to a collection.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Gets a list of items in a collection.

item(Object) item(Object) item(Object) item(Object)

Gets an item from a collection.

Applies to