Solved

Trouble inheriting IPrincipal in vb.net

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now