Home » Microsoft » 70-488 » Which code segment should you insert at line CD04?
You need to validate that specific users can delete tasks.
Which code segment should you insert at line CD04?
A. Option A
B. Option B
C. Option C
D. Option D
Correct Answer: D
Explanation/Reference:
Retrieving all users from a SharePoint group
The SiteGroups property of the Web class gets all groups in all Web sites within a site collection. Example:
ClientContext clientContext = new ClientContext(“http://MyServer/sites/MySiteCollection”); GroupCollection collGroup = clientContext.Web.SiteGroups;
Scenario: Project leads can remove task lists. Reference: How to: Work with Users and Groups