How take screenshot with UMG in C++?

UWorld* World = GetWorld();
UGameViewportClient* GameViewPort = World->GetGameViewport();
GameViewPort->Viewport->TakeHighResScreenShot();