'System.Runtime.InteropServices.DllImportAttribute' cannot be applied to 'AddHandler', 'RemoveHandler', or 'RaiseEvent' methods
The DllImportAttribute attribute was applied to an AddHandler, RemoveHandler, or RaiseEvent method declaration. This attribute can only be used with an empty Function or Sub.
Error ID: BC31531
To correct this error
- Remove the DllImportAttribute attribute from the method declaration.