It depends on the circumstances, but you are typically held until bail is set and you make bail, or until your arraignment.