SPWebPartCollection class
NOTE: This API is now obsolete.
使用SPFile類別的GetLimitedWebPartManager方法來傳回SPLimitedWebPartManager物件而是管理 Web 組件。
Inheritance hierarchy
System.Object
System.Collections.CollectionBase
Microsoft.SharePoint.SPWebPartCollection
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Class SPWebPartCollection _
Inherits CollectionBase _
Implements IList, ICollection, IEnumerable
'用途
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.