Attribute '<attributename>' is not valid: <error>

The common language runtime does not accept the attribute in the current context.

Error ID: BC30127

To correct this error

  1. Remove the attribute from the declaration or replace it with an attribute that is valid for the context.

  2. Examine the error message and take appropriate action.

See Also

Tasks

How to: Define Your Own Attributes