'System.Runtime.InteropServices.DispIdAttribute' value cannot be applied to '<typename>' because 'Microsoft.VisualBasic.ComClassAttribute' reserves zero for the default property
A DispIdAttribute attribute block specifies a DISPID value of 0, which is reserved by COMClassAttribute to represent the default property of 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: BC32505
To correct this error
- Specify a DISPID value greater than zero in DispIdAttribute.
See Also
Concepts
Attributes Used in Visual Basic