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
- Remove the ConditionalAttribute from the invalid declaration.