How can i assign a Skeleton at runtime "assigns a skeleton to the selected mesh"

How can i assign a Skeleton at runtime?
the equivalent of “assigns a skeleton to the selected mesh” at editor level

345829-screenshot43.jpg

How can i do this through BP or C++ during runtime?

Thank you