共用方式為


SPPermissionCollection 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, SPRole表示SPPermission物件的集合和維護回溯相容性。)

The SPPermissionCollection type exposes the following members.

Properties

  Name Description
Public property Count Obsolete. 取得集合中的權限數目。 (Overrides SPBaseCollection.Count.)
Public property Inherited Obsolete. 取得布林值,指出集合是否繼承自父物件。
Public property Item[Int32] Obsolete. 取得集合中指定之索引處的使用權限物件。在 C# 中,這個屬性會是SPPermissionCollection類別的索引子。
Public property Item[SPMember] Obsolete. 從集合中取得與指定成員的使用權限物件。在 C# 中,這個屬性會是SPPermissionCollection類別的索引子。
Public property Parent Obsolete. 取得父物件的權限,可以是清單或站台的集合。
Public property RequestAccess Obsolete. 取得或設定布林值,指定是否啟用清單的要求存取。
Public property RequestAccessEmail Obsolete. 取得或設定是否要求存取啟用站台,以及指定要求所傳送的電子郵件地址。
Public property Xml Obsolete. 以 XML 格式取得權限的集合。
Public property Xml2 Obsolete. 以 XML 格式取得權限的集合。

Top

Methods

  Name Description
Public method Add Obsolete. 使用指定的成員和集合中的權限建立使用權限物件。
Public method AddCollection Obsolete. 將使用者和他們的權限加入至清單、 修改清單的使用者的權限、 修改現有的清單中,群組的權限或修改現有的角色,站台的權限。
Public method CheckPermissions Obsolete. 驗證是否目前的使用者有清單] 或 [站台的指定權限,否則,會擲回拒絕存取 」 例外狀況。
Public method DoesUserHavePermissions Obsolete. 傳回值,指出目前的使用者是否具有指定的使用權限。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
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) Obsolete. 集合中移除指定索引處的使用權限物件。
Public method Remove(SPMember) Obsolete. 從集合中移除指定的成員相關聯的使用權限。
Public method RemoveCollection Obsolete. 移除由成員 Id 的整數陣列,從集合的使用權限。
Public method ResetPermissions Obsolete. 重設從父系物件繼承的權限。
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

請參閱

參照

SPPermissionCollection class

Microsoft.SharePoint namespace