开发者

ASP.NET MVC: Errors when tryig to build a new MembershipProvider

I am trying to follow Steve Sandersons MVC2 book and in Chapter 17 he implements a simple / custom MembershipProvider.

However when I "build" my project I get a HUGE array of "...does not implement inherited abstract member..."

Can anyone tell me how I state I dont want to curr开发者_如何学运维ently implement all of these?

ASP.NET MVC: Errors when tryig to build a new MembershipProvider


You can implement an empty method, or just use the default implementation in base classes.


You need to implement all of the abstract members of the MembershipProvider base class, even if you only need to use a couple of them for your provider. You can put filler code in the bodies of the other methods or you can use this:

throw new NotImplementedException();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜