试题详情
- 单项选择题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? ()
A、Roles.CreateRole(listName);User.InInRole(listName);
B、Roles.CreateRole(listName);Roles.AddUserToRole(useName, listName);
C、Roles.RoleExists(listName);Roles.AddUserToRole(useName, listName);
D、Roles.RoleExists(listName);User.InInRole(listName);
- B
关注下方微信公众号,在线模考后查看
热门试题