Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A custom attribute definition includes a constructor that specifies an invalid data type for a parameter. Attributes can take only certain data types as parameters, because only those types can be serialized into the metadata for the assembly.
Error ID: BC30045
To correct this error
- Change the data type of the parameter to
Byte
,Short
,Integer
,Long
,Single
,Double
,Char
,String
,Boolean
,System.Type
, or an enumeration type.
See also
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.