Definitions of virtue
by virtue of means because of; as a result of
He was granted the power by virtue of section 3 of the Act.
a quality that is good or admirable
The defendant has no virtues whatsoever.
by/in virtue of : because of; as a result of
He has ruined his life by virtue of his conduct on one night.