Navigation: X# 文档 > X# 编译器错误和警告
Error XS8896
'UnmanagedCallersOnly' can only be applied to ordinary static methods or static local functions.