Solved

Trouble inheriting IPrincipal in vb.net

Posted on 2004-09-10
2
847 Views
Last Modified: 2010-05-18
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.

0
Comment
Question by:Keyboard
2 Comments
 
LVL 10

Accepted Solution

by:
jnhorst earned 50 total points
ID: 12028637
Your trying to inherit an interface.  Use "Implements IPrincipal"

John
0
 

Author Comment

by:Keyboard
ID: 12028687
Yuck, thatz what I discovered immediately after I posted my query. Anyway as you pointed it out correctly I am awarding you the points.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Regex validation 2 28
What can cause the styling on a .NET site to not be found? 17 29
Object Oriented Programming, C#, referencing, scoping. 13 69
asp.net mvc 2 25
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question