搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

You are creating an ASP.NET Web site. The site is configured to use Membership and Role management providers. You need to check whether the currently logged-on user is a member of a role namedAdministrators. Which code segment should you use?()

A、bool isMember = Roles.GetUsersInRole("Administrators").Any()

B、bool isMember = Membership.ValidateUser(User.Identity.Name, "Administrators")

C、bool isMember = Roles.GetRolesForUser("Administrators").Any()

D、bool isMember = User.IsInRole("Administrators")

更多“You are creating an ASP.NET Web site. The site is configured to use Membership and Role management providers. You need to check whether the currently logged-on user is a member of a role namedAdministrators. Which code segment should you use?()”相关的问题
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服