SPWebPartCollection Class

NOTE: This API is now obsolete.

Use the GetLimitedWebPartManager method of the SPFile class to return an SPLimitedWebPartManager object to manage Web Parts instead.

Inheritance Hierarchy

System.Object
  System.Collections.CollectionBase
    Microsoft.SharePoint.SPWebPartCollection

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Class SPWebPartCollection _
    Inherits CollectionBase _
    Implements IList, ICollection, IEnumerable
'Usage
Dim instance As SPWebPartCollection
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public class SPWebPartCollection : CollectionBase, 
    IList, ICollection, IEnumerable

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPWebPartCollection Members

Microsoft.SharePoint Namespace