I'm trying to get the list of mandatory and optional properties for a
class of an AD object - can't seem to make it work in S.DS. There's
gotta be a way!!
Here's my code:
// get the user
DirectoryEntry deUser = new
// get the schema entry for the user object
DirectoryEntry deUserSchema = deUser.SchemaEntry;
// get its properties
// list the mandatory properties
int iCount = deUserSchema.Properties["MandatoryProperties"].Count;
But here, I always get zero (0) - same for "OptionalProperties" or any
of the other properties I'd expect to find on this schema entry.
What am I missing??
When I bind to the schema class in AdsVw.exe by means of
"LDAP://user,schema", I do see my mandatory and optional properties,
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch