How can a person become infected by dengue?

If you are bitten by a female Aedes aegypti mosquito that is infected by a virus.