可学答题网 > 问答 > MCPD(70-536)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You are developing an&


You are developing an application that runs by using the credentials of the end user. Only users who are members of the Administrator group get permission to run the application. You write the following security code to protect sensitive data within the application.bool isAdmin=false;  WindowsBuiltInRole role=WindowsBuiltInRole.Administrator; ......  if(!isAdmin)          throw new Exception("User not permitted");   You need to add a code segment to this security code to ensure that the application throws an exception if a user is not a member of the Administrator group. Which code segment should you use?()

  • AA
  • BB
  • CC
  • DD
参考答案
参考解析:
分类:MCPD(70-536)题库
相关推荐

1、You develop an ASP.NET

You develop an ASP.NET web application that uses a Windows Azure web role. The application&ensp...

2、You are developing an&

You are developing an ASP.NET Web page that uses jQuery validation. The user should enter ...

3、You are developing an&

You are developing an application that dynamically loads assemblies from an application directory. Y...

4、You are developing an&

You are developing an application that receives events asynchronously. You create a WqlEventQuery in...

5、You are developing an&

You are developing an ASP.NET Web page. The page contains the following markup. The pages ...

6、You are developing an&

You are developing an ASP.NET Web application. The application must pass an object that contain...