共用方式為


SPRoleCollection members

Include protected members
Include inherited members

NOTE: This API is now obsolete.

請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, SPRoleCollection表示SPRole物件的集合和維護回溯相容性。)

The SPRoleCollection type exposes the following members.

Properties

  Name Description
Public property Count Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Count屬性集合中傳回的角色數目和維護回溯相容性。)。 (Overrides SPBaseCollection.Count.)
Public property Item[Int32] Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Item屬性集合中傳回指定索引處的角色物件和維護回溯相容性。)
Public property Item[String] Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Item屬性從集合傳回具有指定名稱的角色物件和維護回溯相容性。)
Public property Web Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Web屬性傳回父網站集合的角色和維護回溯相容性。)
Public property Xml Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Xml屬性以 XML 格式傳回集合的角色和維護回溯相容性。)

Top

Methods

  Name Description
Public method Add Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Add方法建立角色物件與集合中指定的名稱、 描述及權限遮罩,維護回溯相容性。)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetByID Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, GetByID方法傳回指定的成員 ID 與角色和維護回溯相容性。)
Public method GetCollection Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, GetCollection方法傳回集合中的名稱陣列所指定的角色和維護回溯相容性。)
Public method GetEnumerator 取得列舉值來逐一查看集合。 (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetSpecialRole Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, GetCollection方法傳回其型別所指定的系統角色和維護回溯相容性。)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> 傳回逐一查看集合的型別安全列舉值。 (Inherited from SPBaseCollection.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(Int32) Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Remove方法在集合中移除指定索引處的角色和維護回溯相容性。)
Public method Remove(String) Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, Remove方法從集合中移除具有指定名稱的角色和維護回溯相容性。)
Public method RemoveByID Obsolete. 已過時。請改用新的SPRoleDefinitionSPRoleAssignment類別,來定義角色,並將使用者指派給它們。如需詳細資訊,請參閱Changes in the Authorization Object Model。(在Windows SharePoint Services 2.0, RemoveByID方法從集合中移除具有指定的成員 ID 角色和維護回溯相容性。)
Public method ToString (Inherited from Object.)

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

請參閱

參照

SPRoleCollection class

Microsoft.SharePoint namespace