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

微软认证考试

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

You create a Web site that is for members only. The behavior of the Web site changes according to the role of the user. The Web site uses the ASP.NET Membership control for creation of user accounts. You need to find out whether a user is a member of a particular role. What should you do? ()

  • A、Pass the user names and passwords to Membership.ValidateUser.
  • B、Pass the role names to User.IsInRole.
  • C、Pass the role names to Roles.RoleExists.
  • D、Pass the user names to Membership.GetUser.
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题