Delphi Error – E2298 read/write not allowed for CLR events. Use Include/Exclude procedure

Delphi Compiler Error

E2298 read/write not allowed for CLR events. Use Include/Exclude procedure

Reason for the Error & Solution

Multicast events cannot be assigned to or read from like traditional Delphi read/write events.

Use Include/Exclude to add or remove methods.