Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds an object to the collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Overridable Function Add ( _
newObj As T _
) As T
'Usage
Dim instance As SPPersistedChildCollection
Dim newObj As T
Dim returnValue As T
returnValue = instance.Add(newObj)
public virtual T Add(
T newObj
)
Parameters
newObj
Type: TThe object to add to the collection.
Return Value
Type: T
The object that was added.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The object already exists in the collection. |
See Also
Reference
SPPersistedChildCollection<T> Class