题目内容
Youaredevelopinganapplicationthatrunsbyusingthecredentialsoftheenduser.OnlyuserswhoaremembersoftheAdministratorgroupgetpermissiontoruntheapplication.Youwritethefollowingsecuritycodetoprotectsensitivedatawithintheapplication.boolisAdmin=false;
WindowsBuiltInRolerole=WindowsBuiltInRole.Administrator;......
if(!isAdmin)
thrownewException("Usernotpermitted");
YouneedtoaddacodesegmenttothissecuritycodetoensurethattheapplicationthrowsanexceptionifauserisnotamemberoftheAdministratorgroup.Whichcodesegmentshouldyouuse?()
查看答案
搜索结果不匹配?点我反馈
更多问题