Which collection should you use?

You need to create a Web Part that displays all of the permission levels of the current subsite.

Which collection should you use?

You need to create a Web Part that displays all of the permission levels of the current subsite.

Which collection should you use?

A.
SPContext.Current.Web.Permissions

B.
SPContext.Current.Web.Properties

C.
SPContext.Current.Web.RoleAssignments

D.
SPContext.Current.Web.RoleDefinitions

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
http://msdn.microsoft.com/en-us/library/ms414036.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *