GD0109: The '[ExportToolButton]' attribute cannot be used with another '[Export]' attribute
ID regola |
GD0109 |
Categoria |
Utilizzo |
Fix is breaking or non-breaking |
Non-breaking |
Abilitato per predefinito |
Si |
Cause
A property is annotated with both the [ExportToolButton] and the [Export]
attributes.
Descrizione della regola
The [ExportToolButton] attribute already implies exporting the member, so
the [Export] is unnecessary.
How to fix violations
To fix a violation of this rule, remove the [Export] attribute.
When to suppress warnings
Do not suppress a warning from this rule. Multiple export attributes may lead to duplicated members, resulting in unexpected runtime errors.