If you bought the time share for personal use, then just as in the case of a sale of a principal residence, no loss is allowed. If you bought the time share for investment purposes, you may be able to take the loss as a long-term capital loss.
Generally, the receipt of cash or its equivalent accompanying an exchange of property. In a tax-free exchange, boot is subject to immediate tax.