Question:You are developing an application that uses role-based security. The
principal policy of the application domain is configured during startup
with the following code. AppDomain.CurrentDomain.SetPrincipalPolicy(
_ PrincipalPolicy.WindowsPrincipal) You need to restrict access to
one of the methods in your application so that only members of the
local Administrators group can call the method. Which attribute
should you place on the method?
 

A <PrincipalPermission _ (SecurityAction.Demand, Name:= "BUILTIN\Administrators") _ > 

B <PrincipalPermission _ (SecurityAction.Demand, Role:= "BUILTIN\Administrators") _ >
"A Composite Solution With Just One Click" - Certification Guaranteed 156 Microsoft 70-536 Exam 

C <PrincipalPermission _ (SecurityAction.Assert, Role:= "Administrators") _ > 

D <PrincipalPermission _ (SecurityAction.Assert, Name:= "Administrators") _ > 

+ Answer
+ Report
Total Preview: 881

Copyright © 2024. Powered by Intellect Software Ltd