public ReadOnlyActiveDirectorySchemaClassCollection FindAllClasses()
        {
            base.CheckIfDisposed();
            string[] objectCategory = new string[5];
            objectCategory[0] = "(&(";
            objectCategory[1] = PropertyManager.ObjectCategory;
            objectCategory[2] = "=classSchema)(!(";
            objectCategory[3] = PropertyManager.IsDefunct;
            objectCategory[4] = "=TRUE)))";
            string str = string.Concat(objectCategory);

            return(ActiveDirectorySchema.GetAllClasses(this.context, this.schemaEntry, str));
        }
 public ReadOnlyActiveDirectorySchemaClassCollection FindAllClasses(SchemaClassType type)
 {
     base.CheckIfDisposed();
     if (type < SchemaClassType.Type88 || type > SchemaClassType.Auxiliary)
     {
         throw new InvalidEnumArgumentException("type", (int)type, typeof(SchemaClassType));
     }
     else
     {
         object[] objectCategory = new object[9];
         objectCategory[0] = "(&(";
         objectCategory[1] = PropertyManager.ObjectCategory;
         objectCategory[2] = "=classSchema)(";
         objectCategory[3] = PropertyManager.ObjectClassCategory;
         objectCategory[4] = "=";
         objectCategory[5] = (int)type;
         objectCategory[6] = ")(!(";
         objectCategory[7] = PropertyManager.IsDefunct;
         objectCategory[8] = "=TRUE)))";
         string str = string.Concat(objectCategory);
         return(ActiveDirectorySchema.GetAllClasses(this.context, this.schemaEntry, str));
     }
 }