unity getcomponent not working on ui

Code Example - unity getcomponent not working on ui

                
                        GetComponent<UnityEngine.UI.Text>()