You need to create a Web Part that verifies whether a user who accesses the Web Part page is a
member of a group named Group1. Which code condition should you use?
![PrepAway - Latest Free Exam Questions & Answers](https://www.briefmenow.org/img/pa5.jpg)
A.
SPContext.Current.Web.SiteUsers (SPContext.Current.Web.CurrentUser.ID).Groups
(“Group1”) = null
B.
SPContext.Current.Web.SiteUsers (SPContext.Current.Web.CurrentUser.ID).Groups
(“Group1”) <> null
C.
SPContext.Current.Web.Groups(“Group1”).ContainsCurrentUser
D.
SPContext.Current.Web.Users(“Group1”).IsDomainGroup
Explanation: