共用方式為


SPGroupCollection members

Include protected members
Include inherited members

表示SPGroup物件的集合。

The SPGroupCollection type exposes the following members.

Properties

  Name Description
Public property Count 取得集合中的群組數目。 (Overrides SPBaseCollection.Count.)
Public property Item[Int32] 取得集合中指定之索引處的群組物件。
Public property Item[String] 取得具有指定的名稱從集合的群組物件。
Public property RetrieveAllRoles 取得或設定布林值,指定是否要預先載入以增進效能的使用者的角色。 (Inherited from SPMemberCollection.)
Public property Web 取得集合所屬的網站。 (Inherited from SPMemberCollection.)
Public property Xml 取得為 XML 集合的屬性。

Top

Methods

  Name Description
Public method Add 將群組新增至網站集合中的群組集合。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetByID 按照群組的成員識別碼傳回集合中的群組。
Public method GetByName 按照群組名稱從集合傳回跨網站群組。
Public method GetCollection([]) 根據 [群組 Id 集合中傳回群組的集合。
Public method GetCollection([]) 根據名稱陣列的集合中傳回群組的集合。
Public method GetEnumerator 取得列舉值來逐一查看集合。 (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> 傳回逐一查看集合的型別安全列舉值。 (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(Int32) 移除集合中的指定索引處的群組。
Public method Remove(String) 從集合中移除具有指定名稱的群組。
Public method RemoveByID 從集合中移除具有指定成員識別碼的群組。
Public method ToString (Inherited from Object.)

Top

Fields

  Name Description
Protected field m_arrRolesData 將角色定義資料儲存為二維陣列。 (Inherited from SPMemberCollection.)
Protected field m_dwCountRoles 儲存角色定義的數的字。 (Inherited from SPMemberCollection.)
Protected field m_role 儲存集合所屬的角色定義。 (Inherited from SPMemberCollection.)
Protected field m_web 儲存集合所屬的網站。 (Inherited from SPMemberCollection.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo 陣列,指定的陣列索引處開始複製集合的項目。 (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized 取得布林值,這個值,指出對集合的存取是否同步處理或安全執行緒。 (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot 取得用於同步化存取集合的物件。 (Inherited from SPBaseCollection.)

Top

請參閱

參照

SPGroupCollection class

Microsoft.SharePoint namespace