共用方式為


SPRoleDefinition members

Include protected members
Include inherited members

定義單一角色定義,包括名稱、 描述、 管理內容和一組權限。

The SPRoleDefinition type exposes the following members.

Constructors

  Name Description
Public method SPRoleDefinition() 初始化沒有權限的SPRoleDefinition類別的新執行個體。
Public method SPRoleDefinition(SPRoleDefinition) 複製另一個角色定義的權限,以初始化SPRoleDefinition類別的新執行個體。

Top

Properties

  Name Description
Public property BasePermissions 取得或設定角色定義基底的權限。
Public property Description 取得或設定角色定義的描述。
Public property Hidden 取得布林值,這個值,指出是否要將角色定義顯示在 [新增使用者] 頁面上。
Public property Id 取得集合中的角色定義的 ID。
Public property Name 取得或設定角色定義的名稱。
Public property Order 指定顯示在網站集合的使用權限等級] 頁面的權限層級的順序。
Public property ParentWeb 取得角色定義中的父網站之內。
Public property Type 取得角色定義的型別。
Public property Xml 取得角色定義的權限以 XML 格式。

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Update 使用對於角色定義的內容所做的變更來進行更新。

Top

請參閱

參照

SPRoleDefinition class

Microsoft.SharePoint namespace