Navigation: X# 文档 > X# 编译器错误和警告
Error XS7070
Security attribute '{0}' is not valid on this declaration type. Security attributes are only valid on assembly, type and method declarations.