Solved

Trouble inheriting IPrincipal in vb.net

Posted on 2004-09-10
2
849 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to prevent website from publishing with errors 9 60
Add or delete table rows 10 63
ASP.NET (VB) return a record 2 51
Where is this file? 3 32
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…

685 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