'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
- Specify a DISPID value greater than zero in DispIdAttribute.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: