SPLimitedWebPartCollection 成员

SPLimitedWebPartManager公开的 ASP.NET Web 部件的只读集合。

SPLimitedWebPartCollection 类型公开以下成员。

属性

  名称 说明
公共属性 Count (从 ReadOnlyCollectionBase 继承。)
受保护的属性 InnerList (从 ReadOnlyCollectionBase 继承。)
公共属性 Item[Guid] 集合中的第一个WebPart获取具有指定的存储键。
公共属性 Item[Int32] 获取集合中指定索引处的第一个WebPart
公共属性 Item[String] 获取具有指定标识符集合中的第一个WebPart

页首

方法

  名称 说明
公共方法 Contains 返回True如果集合 ; 中包含指定的 Web 部件否则,返回False。
公共方法 CopyTo 从兼容的一维数组中,目标数组的指定索引处开始到集合中复制的所有 Web 部件。
公共方法 Equals (从 Object 继承。)
受保护的方法 Finalize (从 Object 继承。)
公共方法 GetEnumerator (从 ReadOnlyCollectionBase 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 IndexOf 为指定的搜索 Web 部件和,如果找到,返回集合中第一个出现的从零开始索引否则将返回-1。
受保护的方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString (从 Object 继承。)

页首

显式 接口 实现

  名称 说明
显式接口实现私有方法 ICollection.CopyTo (从 ReadOnlyCollectionBase 继承。)
显式接口实现私有属性 ICollection.IsSynchronized (从 ReadOnlyCollectionBase 继承。)
显式接口实现私有属性 ICollection.SyncRoot (从 ReadOnlyCollectionBase 继承。)

页首

另请参阅

引用

SPLimitedWebPartCollection 类

Microsoft.SharePoint.WebPartPages 命名空间