Method cannot contain both an 'On Error GoTo' statement and a lambda or query expression
A method contains both an On Error Goto
statement and either a lambda expression or a LINQ query. You cannot include an On Error Goto
statement with a lambda expression or LINQ query in a method.
Error ID: BC36595
- Replace the exception handling code that uses the
On Error Goto
statement with aTry...Catch
statement.
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: