Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: 23 May 2006 15:41:25 -0700,    group: microsoft.public.platformsdk.active.directory        back       


Not inheriting attributes from a class   
I've got a question, hopefully that someone has an answer to. Is there
anyway to prevent an attribute from being inherited in the subclass?

I've added my own custom attributes to the "mayContain" attribute of
the user class and the computer class. I later realized that the
computer class inherits from the user class and all of my custom
attributes in the user class appear in all computer object
instantiations. This, naturally, doesn't affect functionality however I
would rather not see attributes, inherited from user class, appear in
computer objects.

Intially I though that there might be some attribute that I can use to
exclude certain attributes that I don't want to see/use however there
doesn't appear to be anything specific to this scenario.

Ideas/Comments?

- Danny
date: 23 May 2006 15:41:25 -0700   author:   unknown

Re: Not inheriting attributes from a class   
Nope.

What you want to do most likely is create aux classes and assign the attributes 
to those aux classes and then dynamically add those classes to specific object 
instantiations. You usually don't want to dork with the base definitions anyway 
except adding additional static aux classes (but that wouldn't work in this case 
either).

   joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

         http://www.joeware.net/win/ad3e.htm



Danny.deSousa@gmail.com wrote:
> I've got a question, hopefully that someone has an answer to. Is there
> anyway to prevent an attribute from being inherited in the subclass?
> 
> I've added my own custom attributes to the "mayContain" attribute of
> the user class and the computer class. I later realized that the
> computer class inherits from the user class and all of my custom
> attributes in the user class appear in all computer object
> instantiations. This, naturally, doesn't affect functionality however I
> would rather not see attributes, inherited from user class, appear in
> computer objects.
> 
> Intially I though that there might be some attribute that I can use to
> exclude certain attributes that I don't want to see/use however there
> doesn't appear to be anything specific to this scenario.
> 
> Ideas/Comments?
> 
> - Danny
>
date: Wed, 24 May 2006 21:14:55 -0400   author:   Joe Richards [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us