Hi Paul,
I don't believe you can use a .net variable inside the map that you define outside of the map. I think you can create a schema with the following structure. Then create and populate a XLangMessage of this type of schema and use the XLangMessage as an input to the map. hope that helps.