'System.Runtime.InteropServices.DispIdAttribute' value cannot be applied to '<typename>' because 'Microsoft.VisualBasic.ComClassAttribute' reserves values less than zero
A DispIdAttribute attribute block specifies a DISPID value less than 0, which is reserved by COMClassAttribute for special functions on the class to which it is applied.
The dispatch identifier (DISPID) is used in COM as an argument to the IDispatch:Invoke method to access the properties and methods exposed by a COM object.
Error ID: BC32506
To correct this error
- Specify a DISPID value greater than zero in DispIdAttribute.
See Also
Concepts
Attributes Used in Visual Basic