Herewith has 2 different meanings across 1 category:
Adverb
(formal) by means of this
"I hereby declare you man and wife"
with this; especially, with this letter or communication