Export (0) Print
Expand All

SPWebPartCollection Class

Windows SharePoint Services 3

NOTE: This API is now obsolete.

Use the GetLimitedWebPartManager method of the SPFile class to return an SPLimitedWebPartManager object to manage Web Parts instead. (In Windows SharePoint Services 2.0 the SPWebPartCollection class represented a collection of Web Parts.)

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

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

[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPWebPartCollection : CollectionBase, 
	IList

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

Community Additions

ADD
Show:
© 2014 Microsoft