Attribute 'Conditional' is only valid on 'Sub' declarations

The ConditionalAttribute attribute has been applied to a method declaration other than a Sub procedure.

Error ID: BC41007

To correct this error

See Also

Reference

Sub Statement (Visual Basic)

ConditionalAttribute