共用方式為


SPUserCollection members

Include protected members
Include inherited members

表示SPUser物件的集合。

The SPUserCollection type exposes the following members.

Properties

  Name Description
Public property Count 取得集合中的使用者數目。 (Overrides SPBaseCollection.Count.)
Public property Item[Int32] 取得集合中指定之索引處的使用者物件。在 C# 中,這個屬性會是SPUserCollection類別的索引子。
Public property Item[String] 從集合中取得具有指定的使用者名稱的使用者物件。在 C# 中,這個屬性會是SPUserCollection類別的索引子。
Public property RetrieveAllRoles 取得或設定布林值,指定是否要預先載入以增進效能的使用者的角色。 (Inherited from SPMemberCollection.)
Public property SchemaXmlEx 取得指定欄位用來定義集合的清單結構描述。
Public property ViewSchemaXmlEx 取得結構描述,說明用來傳回集合的使用者資訊的預設檢視。
Public property Web 取得集合所屬的網站。 (Inherited from SPMemberCollection.)
Public property Xml 取得集合的 XML 表示。
Public property XmlEx 取得集合中 XMLDATA 格式。

Top

Methods

  Name Description
Public method Add 將指定的使用者新增至集合。
Public method AddCollection 加入陣列,指定使用者資訊為基礎的現有集合中的使用者的集合。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetByEmail 傳回指定的電子郵件地址的使用者。
Public method GetByID 傳回指定的成員 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 從集合中移除之指定的成員 ID 與使用者。
Public method RemoveCollection 移除字串陣列,包含其使用者名稱所代表的使用者的集合。
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

請參閱

參照

SPUserCollection class

Microsoft.SharePoint namespace