If a derivative action is successful, in whole or in part, or if anything is received by the plaintiff as a result of a judgment, compromise or settlement of an action or claim, except as hereinafter provided, the court may award the plaintiff reasonable expenses, including reasonable attorney's fees, and shall direct the plaintiff to remit to the limited liability company the remainder of those proceeds received by him or it. On termination of the derivative action, the court may require the plaintiff to pay any defendant's reasonable expenses, including reasonable attorney's fees, incurred in defending the action if it finds that the action was commenced without reasonable cause or the plaintiff did not fairly and adequately represent the interests of the members and the limited liability company in enforcing the right of the limited liability company.
Va. Code § 13.1-1045