Hi
I am trying to use the new ActiveDirectorySchemaClass class. When using the MandatoryProperties of any given class object , it returns a collection of properties not only defined to the current class but also any mandatory properties of auxillary or superior classes. Same goes for the OptionalProperties.
A class with perhaps 4 or 6 mandatory properties returns a collection of perhaps over a 100 properties.
Surely I am missing something. I need the mandatoryproperties and optionalproperties of the only the specified class.
So in the meantime I am back at loading the information myself with standard LDAP serches in the schema partition.
So how do I fix this

ActiveDirectorySchemaClass
Tamer Darweesh
This is by design. Is there any particular reason that you only want mustcontain and maycontain defined on a particular class only That partial information does not seem to be particularly useful and is misleading. Usually you will want the complete mustcontain and maycontain info of a class object which includes its supreior and auxiliary class info. Take user class for example, it does not have any mustcontain itself, but properties like cn, samAccountName and so on are its mandatory properties and need to be set.
And if you really need to get that, you can use System.DirectoryServices directly, bind to the schema object and get the mustcontain and systemmustcontain property.