GD0109: The '[ExportToolButton]' attribute cannot be used with another '[Export]' attribute
规则 ID |
GD0109 |
类别 |
用法 |
修复是破坏性的还是非破坏性的 |
非破坏性的 |
默认启用 |
是 |
原因
A property is annotated with both the [ExportToolButton] and the [Export]
attributes.
规则说明
The [ExportToolButton] attribute already implies exporting the member, so
the [Export] is unnecessary.
如何解决违规情况
要修复违反该规则的情况,请移除 [Export] 属性。
何时抑制警告
Do not suppress a warning from this rule. Multiple export attributes may lead to duplicated members, resulting in unexpected runtime errors.