Operator '<operatorname>' is not defined for type '<typename>'
You have attempted to use a unary operator (+, -, or Not) on a type, such as a String, for which it is not defined.
Error ID: BC30487
To correct this error
- Replace the unary operator with an appropriate operator for the expression.
See Also
Concepts
Operators and Expressions in Visual Basic
Efficient Combination of Operators