?
Solved

Trouble inheriting IPrincipal in vb.net

Posted on 2004-09-10
2
Medium Priority
?
861 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
jnhorst earned 150 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month12 days, 12 hours left to enroll

777 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