black

MCPD(70-536)

登录

单项选择题

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?()

A.A
B.B
C.C
D.D

相关考题

单项选择题 您正在开发一个协助用户进行电子调查的应用程序。调查由25个对错判断题组成。您需要执行下列任务:将每个答案预置为是。最大程度地减少每次调查使用的内存量。您应该选择哪个存储选项?()

单项选择题 您正在开发自定义集合类。您需要在类中创建方法。您需要确保在类中创建的方法返回与Foreach语句兼容的类型。该方法应满足哪个条件?()

单项选择题 您正在创建一个类,用于比较经过特殊格式设置的字符串。默认的排序规则比较不适用。您需要实现IComparable接口。您应该使用哪个代码段?()

All Rights Reserved 版权所有©PP题库网库(pptiku.com)

备案号:湘ICP备14005140号-5

经营许可证号:湘B2-20140064