Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1667
Attribute '{0}' is not valid on property or event accessors. It is only valid on '{1}' declarations.