PrepAway - Latest Free Exam Questions & Answers

What should you do?

You are an enterprise application developer. You are developing a smart client application. You write a method that reads a registry value. Your application runs from a partially trusted environment. The method must not throw an exception when it reads the registry value. You need to ensure that your code is authorized to read the registry key before it attempts to read the value.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Call the Assert method of the RegistryPermission class.

B.
Call the Demand method of the RegistryPermission class.

C.
Call the GetAccessControl method of the RegistryKey class.

D.
Call the GetAccessRules method of the RegistrySecurity class.


Leave a Reply