Question:You are loading a new assembly into an application. You need to override the default evidence for the assembly. You require the common language runtime (CLR) to grant the assembly a permission set, as if the assembly were loaded from the local intranet zone. You need to build the evidence collection. Which code segment should you use? 

A Evidence evidence = new Evidence();
evidence.AddHost(new Zone(SecurityZone.Intranet)); 

B Evidence evidence = new Evidence(
AppDomain.CurrentDomain.Evidence
); 

C Evidence evidence = new Evidence();
evidence.AddAssembly(new Zone(SecurityZone.Intranet)); 

D Evidence evidence = new Evidence(
Assembly.GetExecutingAssembly().Evidence ); 

+ Answer
+ Report
Total Preview: 759

Copyright © 2024. Powered by Intellect Software Ltd