How do I play a Niagara effect from c++?

Please look at NiagaraFunctionLibrary.h.
Does this solve it?