Link to home
Start Free TrialLog in
Avatar of Keyboard
Keyboard

asked on

Trouble inheriting IPrincipal in vb.net

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

I read the following:
-----------
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetch02.asp
http://samples.gotdotnet.com/quickstart/aspplus/doc/windowsauth.aspx
-----------

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.

ASKER CERTIFIED SOLUTION
Avatar of jnhorst
jnhorst

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Keyboard
Keyboard

ASKER

Yuck, thatz what I discovered immediately after I posted my query. Anyway as you pointed it out correctly I am awarding you the points.