ErrorGettingCharacterMovementMode

I can not access character movementmode from my character class,Inherited from ACharacter.

Code:
EMovementMode moveMode = GetCharacterMovement()->GetGroundMovementMode();

Error:
C2227
left of ‘->GetGroundMovementMode’ must point to class/struct/union/generic type

Anyone know what is wrong?