Extract animation from fbx file using C#

Hi Everyone,
I have 3D character rigged game object. I have a fbx file with some animation.

I just need to know.

  1. How to extract animation from fbx file using C# script?
  2. Once extract animation from fbx file, how to apply character animation based on button click using C# script?

Kindly please help me to resolve my queries.