Udostępnij za pośrednictwem


'<modifier>' is not valid on a Delegate declaration

You attempted to use a modifier, such as Shared, on a delegate declaration. Delegates are objects used to call the methods of other objects, by defining a constructor that is passed the specification of an object method. It is not valid to specify a modifier on a delegate declaration.

Error ID: BC30385

To correct this error

  • Remove the modifier.

See Also

Tasks

How to: Invoke a Delegate Method

Reference

Delegate Statement