A limited partner may withdraw from a limited partnership only at the time or upon the happening of events specified in the partnership agreement and in accordance with the partnership agreement. Notwithstanding anything to the contrary under applicable law, unless a partnership agreement provides otherwise, a limited partner may not withdraw from a limited partnership prior to the dissolution and winding up of the limited partnership. Notwithstanding anything to the contrary under applicable law, a partnership agreement may provide that a partnership interest may not be assigned prior to the dissolution and winding up of the limited partnership.
Unless otherwise provided in a partnership agreement, a limited partnership whose original certificate of limited partnership was filed with the Secretary of State and effective on or prior to July 31, 1996, shall continue to be governed by this section as in effect on July 31, 1996.