'NavMeshSurface' does not contain a definition for 'IsPartOfPrefab'

Unity NavMeshSurface IsPartOfPrefab not found something. It says in the log

error CS1061: ‘NavMeshSurface’ does not contain a definition for ‘IsPartOfPrefab’ and no accessible extension method ‘IsPartOfPrefab’ accepting a first argument of type ‘NavMeshSurface’ could be found (are you missing a using directive or an assembly reference?)

I have absolutely no idea what to do.

Please help me.