Answers

Question and Answer:

  Home  MCSD.NET - 70-330 Exam

⟩ Suppose You are an application developer for your company. You develop library assemblies that arecalled by your main applications. These library assemblies access confidential data in theapplications. To ensure that this data is not accessed in an unauthorized and unsafe manner,users must not be allowed to call the library assemblies from their own applications. You apply astrong name to all assemblies to support versioning. You need to prevent users from writingmanaged applications that make calls to your library assemblies. You need to achieve this goalwhile minimizing the impact on response times for applications. What should you do?A. Use the internal access modifier to declare all classes and structs in each library.B. Use the protected internal access modifier to declare all classes and structs in each library.C. Add the following attribute to each class and struct in each library assembly.<StrongNameIdentityPermission(SecurityAction.Demand, PublicKey="002400..bda4"

D. Add the following attribute to each class and struct in each library assembly.

<StrongNameIdentityPermission(SecurityAction.LinkDemand, PublicKey:="002400..bda4")>

 213 views

More Questions for you: