Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS8896
'UnmanagedCallersOnly' can only be applied to ordinary static methods or static local functions.