'AddHandler', 'RemoveHandler' and 'RaiseEvent' method parameters cannot be declared '<modifier>'
The parameters of the AddHandler
, RemoveHandler
, and RaiseEvent
methods cannot be declared with the Optional
or ParamArray
modifiers.
The Optional
or ParamArray
modifiers are allowed only on parameters in Declare
, Function
, Property
, and Sub
declarations.
Error ID: BC31138
- Remove the
Optional
orParamArray
keyword from the parameter list.
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.
.NET feedback
.NET is an open source project. Select a link to provide feedback: