网友您好, 请在下方输入框内输入要搜索的题目:
Youaredevelopinganapplicationthatrunsbyusingthecredentialsoftheenduser.OnlyuserswhoaremembersoftheAdministratorgroupgetpermissiontoruntheapplication.Youwritethefollowingsecuritycodetoprotectsensitivedatawithintheapplication.boolisAdmin=false;
WindowsBuiltInRolerole=WindowsBuiltInRole.Administrator;......
if(!isAdmin)
thrownewException("Usernotpermitted");
YouneedtoaddacodesegmenttothissecuritycodetoensurethattheapplicationthrowsanexceptionifauserisnotamemberoftheAdministratorgroup.Whichcodesegmentshouldyouuse?()
参考答案