Udostępnij za pośrednictwem


Attribute '<attributename>' cannot be specified more than once in this project, even with identical parameter values

A custom attribute is specified more than once on the same programming element, but an AttributeUsageAttribute is applied to the custom attribute, and its AllowMultiple property is set to False. AllowMultiple controls whether the attribute is multi-use.

By default, this message is a warning. For information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC41000

To correct this error

See Also

Concepts

Application of Attributes

Reference

AttributeUsageAttribute

AllowMultiple