Option Strict On requires that all method parameters have an 'As' clause

A method contains a parameter without an As clause. When Option Strict is on, every variable, property, procedure argument, and function return must be declared with an As clause to specify its data type; for example, Sub GetData(ByVal filter As String).

Error ID: BC30211

To correct this error

  • Check to see whether the As keyword is misspelled.

  • Supply an As clause for the declared variable, or turn Option Strict off.

See Also

Reference

Option Strict Statement

Sub Statement (Visual Basic)

Function Statement (Visual Basic)