'<typename>' is a delegate type

'<typename>' is a delegate type. Delegate construction permits only a single AddressOf expression as an argument list. Often an AddressOf expression can be used instead of a delegate construction.

A New clause creating an instance of a delegate class supplies an invalid argument list to the delegate constructor.

You can supply only a single AddressOf expression when creating a new delegate instance.

This error can result if you pass no arguments at all to the delegate constructor, more than one argument, or a single argument that is not a valid AddressOf expression.

Error ID: BC32008

To correct this error

  • Use a single AddressOf expression in the argument list for the delegate class in the New clause.

See Also

Tasks

How to: Invoke a Delegate Method

Concepts

Delegates and the AddressOf Operator

Reference

New (Visual Basic)

AddressOf Operator