PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You are developing an ASP.NET MVC application that uses forms authentication against a third‐party
database.
You need to authenticate the users.
Which code segment should you use?


PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
Class ProviderBase
The provider model is intended to encapsulate all or part of the functionality of multiple ASP.NET
features, such as membership, profiles, and protected configuration.

6 Comments on “Which code segment should you use?

  1. BobiSim says:

    I think D because this:
    To implement a membership provider, you create a class that inherits the MembershipProvider abstract class from the System.Web.Security namespace. The MembershipProvider abstract class inherits the ProviderBase abstract class from the System.Configuration.Provider namespace, so you must implement the required members of the ProviderBase class as well.




    2



    0

Leave a Reply