Any form of contraception that prevents pregnancy.