Microsoft Exam Questions

Which code segment should you use?

You are developing an application that will deploy by using ClickOnce. You need to test if the application executes properly. You need to write a method that returns the object, which prompts the user to install a ClickOnce application. Which code segment should you use?

A.
return ApplicationSecurityManager.ApplicationTrustManager;

B.
return AppDomain.CurrentDomain.ApplicationTrust;

C.
return new HostSecurityManager();

D.
return SecurityManager.PolicyHierarchy();