Udostępnij za pośrednictwem


Operators cannot be declared '<keyword>'

An operator is declared with a keyword that is not valid for operator definitions.

Every operator must be declared as both Public (Visual Basic) and Shared (Visual Basic). In addition, a conversion operator must be declared with either Widening or Narrowing, but not both. An operator definition can optionally include the Overloads or Shadows keywords. No other keywords are permitted in an Operator Statement.

Error ID: BC33013

To correct this error

  • Remove the invalid keyword from the operator definition.

See Also

Tasks

How to: Define an Operator

How to: Define a Conversion Operator

Concepts

Operator Procedures