SPPersistedChildCollection<T>.Add method

Adds an object to the collection.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public virtual T Add(
	T newObj
)

Parameters

newObj
Type: T

The object to add to the collection.

Return value

Type: T
The object that was added.

ExceptionCondition
ArgumentException

The object already exists in the collection.

Show: