共用方式為


SPPersistedChildCollection<T> members

Include protected members
Include inherited members

代表具有一般父SPPersistedObject物件的集合。

The SPPersistedChildCollection<T> type exposes the following members.

Constructors

  Name Description
Protected method SPPersistedChildCollection<T>(SPPersistedObject) 初始化建立指定之類型的物件,且由指定的父物件擁有集合SPPersistedChildCollection<T>類別的執行個體。
Protected method SPPersistedChildCollection<T>(SPPersistedObject, Comparison<T>) 初始化建立一組特定類型的物件,且由指定的父擁有且由指定的委派方法比較SPPersistedChildCollection<T>類別的執行個體。

Top

Properties

  Name Description
Public property Count 集合中取得物件的數目。 (Inherited from SPPersistedObjectCollection<T>.)
Public property IsEmpty 取得 Boolean 值,表示集合是否含有任何物件。 (Inherited from SPPersistedObjectCollection<T>.)
Public property Item[Guid] 根據指定的 GUID 集合中取得的持續性的物件。 (Inherited from SPPersistedObjectCollection<T>.)
Public property Item[String] 根據指定的名稱集合中取得的持續性的物件。 (Inherited from SPPersistedObjectCollection<T>.)
Protected property Parent 取得宣告此集合的父物件。 (Inherited from SPPersistedObjectCollection<T>.)

Top

Methods

  Name Description
Public method Add 會將物件新增至集合。
Public method Ensure 會將物件新增至集合,並如果物件已存在,時重新加以初始化的現有物件的資料。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator 取得可用來逐一查看集合的列舉值。 (Inherited from SPPersistedObjectCollection<T>.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetValue<U>() 使用指定的類型和預設名稱從集合中擷取的物件。 (Inherited from SPPersistedObjectCollection<T>.)
Public method GetValue<U>(Guid) 使用指定的識別碼和類型從集合中擷取的物件。 (Inherited from SPPersistedObjectCollection<T>.)
Public method GetValue<U>(String) 使用指定的名稱與類型從集合中擷取的物件。 (Inherited from SPPersistedObjectCollection<T>.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove 會將物件從集合中刪除。
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator 透過這份清單中的所有項目傳回的列舉值。 (Inherited from SPPersistedObjectCollection<T>.)

Top

請參閱

參照

SPPersistedChildCollection<T> class

Microsoft.SharePoint.Administration namespace