Add Method
Collapse the table of content
Expand the table of content

ICollection<T>.Add Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Adds an item to the ICollection<T>.

Namespace:  System.Collections.Generic
Assembly:  mscorlib (in mscorlib.dll)

void Add(
	T item
)

Parameters

item
Type: T
The object to add to the ICollection<T>.

ExceptionCondition
NotSupportedException

The ICollection<T> is read-only.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft