He served in the Virginia House of Delegates from 1992 to 2006 , and was Attorney General of Virginia from 2006 to 2009 .
He served in the Virginia House of Delegates from 1993 to 2006 . McDonnell was the Attorney General of Virginia from 2006 to 2009 .