nerdexam
Microsoft

70-573 · Question #59

You need to create a Web Part that creates a copy of the out-of-the-box Contribute permission level. Which code segment should you implement in the Web Part?

The correct answer is B. SPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web. MNEMONIC RULE: "RoleDefinitions("Contribute")"

Developing Business Logic

Question

You need to create a Web Part that creates a copy of the out-of-the-box Contribute permission level. Which code segment should you implement in the Web Part?

Options

  • ASPRoleDefinition myRole = new SPRoleDefinition();
  • BSPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web.
  • CSPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web.
  • DSPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web.

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    77% (20)
  • C
    12% (3)
  • D
    8% (2)

Explanation

MNEMONIC RULE: "RoleDefinitions("Contribute")"

Topics

#SPRoleDefinition#permission level#Contribute permission#security

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice