Share via


Attributes cannot be applied to local variables

Attributes cannot be applied to local variables.

Error ID: BC30660

To correct this error

  • Declare this variable at the next higher level of scope, such as the class or module level.

See Also

Reference

AttributeUsageAttribute

Other Resources

Attributes in Visual Basic