A dioecious flowering plant prevents both
Dioecious plant means plant with either type of flowers pistillate or staminate means male plant or female plant. For autogamy flowers should be bisexual while for geitonogamy either unisexual flowers of both type should be present on same plant or flowers should be bisexual. So in dioecious plants neither autogamy nor geitonogamy is possible.