July 29, 2008 Leave a comment
Sometimes, you need to retrieve all current Active Directory schema properties.
//connect to AD and get the schema properties.
ReadOnlyActiveDirectorySchemaPropertyCollection properties = schema.FindAllProperties();
Properties will contain a collection of all the current AD properties. you can check whatever properties’ values. For example, properties.Name, properties.IsSingleValued