Which code segment should you use?

Posted by: Pdfprep Category: 70-486 Tags: , ,

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?

A . Option A
B . Option B
C . Option C
D . Option D

Answer: D

Explanation:

ASP.NET membership is designed to enable you to easily use a number of different membership providers for your ASP.NET applications.

There are two primary reasons for creating a custom membership provider.

* You need to store membership information in a data source that is not supported by the membership providers included with the .NET Framework, such as a FoxPro database, an Oracle database, or other data sources.

* You need to manage membership information using a database schema that is different from the database schema used by the providers that ship with the .NET Framework.

To implement a membership provider, you create a class that inherits the MembershipProvider abstract class from the System.Web.Security namespace.

Incorrect:

Not C: 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.

References: https://msdn.microsoft.com/en-us/library/f1kyba5e.aspx

Leave a Reply

Your email address will not be published.