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
正确答案:A
答案解析:有
微信扫一扫手机做题