Trouble inheriting IPrincipal in

I am implementing and extending IPrincipal, because I need additional properties like - company, name etc.

I read the following:

and proceeded to implement the same. I created a class "myprincipal" and tried inheriting IPrincipal. But I get a wiggly error :-) saying "Classes can inherit only from other classes".

Imports System.Security.Principal

Public Class myPrincipal
    Inherits IPrincipal

End Class

What am I doing wrong? Urgent help required. Thanks.

Who is Participating?
jnhorstConnect With a Mentor Commented:
Your trying to inherit an interface.  Use "Implements IPrincipal"

KeyboardAuthor Commented:
Yuck, thatz what I discovered immediately after I posted my query. Anyway as you pointed it out correctly I am awarding you the points.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.