Attribute cannot be used because it does not have a Public constructor
The constructor for the attribute being used is Private
, and cannot be used.
Error ID: BC30758
- If you see this error with a custom attribute that you developed, change its
Sub New
constructor's access modifier toPublic
.
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: