'<method1>' cannot override '<method2>' because they differ by the default values of optional parameters
You have attempted to override a method with another method that differs from the first in the default values of its optional parameters, meaning that their signatures differ. A type may override an inherited overridable method by declaring a method with the same name and signature, and marking the declaration with the Overrides
modifier.
Error ID: BC30307
To correct this error
- Make sure the two methods have the same signature.
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for