Navigation: X# Documentation > X# Compiler Errors and Warnings
Error XS1689
Attribute '{0}' is only valid on methods or attribute classes