473,385 Members | 1,934 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

problem with implementation

Hi

I'm writing a class for my program that implements the iprinciple interface.

my code is as follows:

public class BranchBuilderPrincipal : System.Security.Principal.IPrincipal
{
private IIdentity m_Identity;
private Int16 m_Userid;
private string m_FirstName = string.Empty ;
private string m_LastName = string.Empty;
private string m_Email = string.Empty;
private ArrayList m_ArrayListRoles;

//constructor
public BranchBuilderPrincipal(IIdentity Identity, string UserInfo)
{
//constructor code here
}

//constructor for property
public boolean IsInRole(string role) : System.Security.Principal.IPrincipal
{
get
{
return m_ArrayListRoles
}
}

I have a few problems:
1. System.Security.Principal.IPrincipal in the property constructor does not
bring up
intellisense for the IIdentity.

2. in the property constructor for IsInRole my m_arraylistroles does not
have access to any intellisense and I hoping to get it access to the methods,
properties of an arraylist.

3. none of my properties are allowing only readonly.

thanks

Chris
Nov 17 '05 #1
1 1531
Hi,

I have a few problems:
1. System.Security.Principal.IPrincipal in the property constructor does
not
bring up
intellisense for the IIdentity.
Does the code compile?
Maybe you are missing the reference to the namespace, usually when the
intellisense does not work that is an indication that there is something
wrong.
2. in the property constructor for IsInRole my m_arraylistroles does not
have access to any intellisense and I hoping to get it access to the
methods,
properties of an arraylist.

3. none of my properties are allowing only readonly.


The only property IPrincipal expose Identity is read only, IsInRole is a
method, not a property.
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Vinay Aggarwal | last post by:
I have been thinking about the lazy initialization and double checked locking problem. This problem is explain in detail here http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html...
117
by: Peter Olcott | last post by:
www.halting-problem.com
3
by: Brad Quinn | last post by:
Friday, no brain power remains... I have three assemblies; Client, Interface and Implementation. The Client uses Implementation through remoting. Client has a reference to Interface, but not...
2
by: Mevar81 | last post by:
Hi to everybody.I have a problem with the PropertyGrid control.I want to display not all the properties of a generic Control(Button,TextBox,ComboBox,ecc.).In general I don't want to display only...
0
by: Vince Zhang | last post by:
Hi, all I wanna make dso that implements OLEDBSimpleProvider interface to interact mshtml.dll. but meet problem in doing it. Could anybody help me? I do the following tasks: 1. use VS.NET IDE...
2
by: philippe sillon | last post by:
Hi, I have a problem to implemente the strategy pattern. the problem come from that a method take different arguments type (object in interface and String / Int in implemented class). When...
19
by: Chocawok | last post by:
Some of the classes in my app are graphical. To encapsulate the graphical side of things I had created a class called "sprite" which holds a bit map and knows how to draw itself etc. The...
20
by: ramubdvt | last post by:
hi, i have written this strcat but sometime it is giving problem, while handeling some strings containing binary and if string containing zero , funtion which takes string 1 and its length...
78
by: Josiah Manson | last post by:
I found that I was repeating the same couple of lines over and over in a function and decided to split those lines into a nested function after copying one too many minor changes all over. The only...
6
by: سعرَ | last post by:
Hi all! I have a Dll like this: #include <windows.h> #include <stdio.h> #include <stdlib.h> __declspec (dllexport) int Add (int n) { int x;
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.