As long as you are intending to leave after you marry, you have not violated the intent of the visa. However, if you have an intent to marry, the border officer may not believe you actually intend to return.
As long as you are intending to leave after you marry, you have not violated the intent of the visa. However, if you have an intent to marry, the border officer may not believe you actually intend to return.