Why can't I call a function from the get component by class?

When I drag from the return value, I can’t call a function. When I type the function name, nothing appears. This is the code I am using
Blueprint

What do you get when you: