Microsoft
70-573 · Question #49
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 SharePoint Solutions
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.Properties
- BSPContext.Current.Web.Permissions
- CSPContext.Current.Web.RoleAssignments
- DSPContext.Current.Web.RoleDefinitions
How the community answered
(29 responses)- A3% (1)
- B3% (1)
- C14% (4)
- D79% (23)
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#SPRoleDefinition#security model
Community Discussion
No community discussion yet for this question.