Share via


SPWebPartCollection.IList.Add Method

NOTE: This API is now obsolete.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Private Function Add ( _
    value As Object _
) As Integer Implements IList.Add
'Usage
Dim instance As SPWebPartCollection
Dim value As Object
Dim returnValue As Integer

returnValue = CType(instance, IList).Add(value)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
intIList.Add(
    Object value
)

Parameters

Return Value

Type: System.Int32

Implements

IList.Add(Object)

See Also

Reference

SPWebPartCollection Class

SPWebPartCollection Members

Microsoft.SharePoint Namespace