PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You create a Web site that is for members only. The Web site allows members to create lists of users that have access to information about member profiles. The name of the list is stored in the listName variable. The user name of the user to whom access is given is stored in the username variable. You need to enable members to manage their lists of users. Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Roles.CreateRole(listName);User.IsInRole(listName);

B.
Roles.CreateRole(listName);Roles.AddUserToRole(userName,listName);

C.
Roles.RoleExist(listName);Roles.AddUserToRole(userName,listName);

D.
Role.RoleExist(listName);User.InInRole(listName);


Leave a Reply