多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

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
答案解析:
进入题库查看解析

微信扫一扫手机做题