SPPersistedChildCollection<T> 成员

表示一个公共父级的SPPersistedObject对象的集合。

SPPersistedChildCollection<T> 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 SPPersistedChildCollection<T>(SPPersistedObject) 初始化要创建给定类型的指定的父对象拥有的对象的集合的SPPersistedChildCollection<T>类的一个实例。
受保护的方法 SPPersistedChildCollection<T>(SPPersistedObject, Comparison<T>) 初始化要创建给定类型的由指定的父对象负责,并由指定的委托方法进行比较的对象的集合的SPPersistedChildCollection<T>类的一个实例。

页首

属性

  名称 说明
公共属性 Count 获取集合中对象的数目。 (从 SPPersistedObjectCollection<T> 继承。)
公共属性 IsEmpty 获取一个布尔值,该值指示集合中是否包含任何对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共属性 Item[Guid] 获取基于指定的 GUID 集合中的持久的对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共属性 Item[String] 获取基于指定的名称在集合中的持久的对象。 (从 SPPersistedObjectCollection<T> 继承。)
受保护的属性 Parent 获取声明此集合的父对象。 (从 SPPersistedObjectCollection<T> 继承。)

页首

方法

  名称 说明
公共方法 Add 将对象添加到集合中。
公共方法 Ensure 将对象添加到集合,而且,如果该对象已经存在,与现有的对象的数据重新初始化它。
公共方法 Equals (从 Object 继承。)
受保护的方法 Finalize (从 Object 继承。)
公共方法 GetEnumerator 获取一个可用于循环访问集合的枚举器。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 GetValue<U>() 从具有指定的类型和默认的名称的集合中检索对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 GetValue<U>(Guid) 从具有指定的 ID 和类型的集合中检索对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 GetValue<U>(String) 从具有指定的名称和类型的集合中检索对象。 (从 SPPersistedObjectCollection<T> 继承。)
受保护的方法 MemberwiseClone (从 Object 继承。)
公共方法 Remove 删除集合中的对象。
公共方法 ToString (从 Object 继承。)

页首

显式 接口 实现

  名称 说明
显式接口实现私有方法 IEnumerable.GetEnumerator 返回可枚举此列表中的所有项目。 (从 SPPersistedObjectCollection<T> 继承。)

页首

另请参阅

引用

SPPersistedChildCollection<T> 类

Microsoft.SharePoint.Administration 命名空间