Microsoft
70-573 · Question #163
You need to create a Web Part that displays all of the permission levels of the current subsite. Which collection should you use?
The correct answer is D. SPContext.Current.Web.RoleDefinitions. MNEMONIC RULE: "permission levels = RoleDefinitions" The role definition, or permission level, is the list of rights associated with the role. Role Assignments, Role Definitions, and Inheritance
Developing Business Logic
Question
You need to create a Web Part that displays all of the permission levels of the current subsite. Which collection should you use?
Options
- ASPContext.Current.Web.Permissions
- BSPContext.Current.Web.Properties
- CSPContext.Current.Web.RoleAssignments
- DSPContext.Current.Web.RoleDefinitions
How the community answered
(61 responses)- A3% (2)
- B7% (4)
- C18% (11)
- D72% (44)
Explanation
MNEMONIC RULE: "permission levels = RoleDefinitions" The role definition, or permission level, is the list of rights associated with the role. Role Assignments, Role Definitions, and Inheritance
Topics
#permission levels#RoleDefinitions#SPWeb#security
Community Discussion
No community discussion yet for this question.