Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SPWebPartCollection class
Collapse the table of content
Expand the table of content

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.

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

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

[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public class SPWebPartCollection : CollectionBase, 
	IList, ICollection, IEnumerable

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