Compiler Error WFDEV002

Version introduced: .NET 7

DomainUpDown.DomainUpDownAccessibleObject is obsolete. Use AccessibleObject instead.

Reference to DomainUpDown.DomainUpDownAccessibleObject generates warning WFDEV002 at compile time. This error states that DomainUpDownAccessibleObject is no longer used to provide accessible support for DomainUpDown controls. The DomainUpDownAccessibleObject type was never intended for public use.

Workaround

Replace references of DomainUpDown.DomainUpDownAccessibleObject with AccessibleObject.

Suppress a warning

This warning was promoted to an error starting in .NET 8, and you can no longer suppress the error. For more information, see WFDEV002 obsoletion is now an error.