How to pass a string of data when triggering a UVM event?

How to pass a string of data when triggering a UVM event?

It depends on which version of the UVM you are using.

Prior to UVM 1.2, you have to wrap whatever data you want to pass inside a class instance derived from uvm_object.

Starting with UVM 1.2, uvm_event#(T) is parameterized to whatever type data is needed.