class design -- declaring the event, and raising it within the class
event consumption -- subscribing to the event
This article doesn't clearly differentiate between those two sides.
Specifically, the subheadings ("Call an event handler using Handles and WithEvents" and "Call an event handler using AddHandler") are confusing. How does subscribing to an event handler qualify as "calling" the event handler? And raising the event is in any case done using RaiseEvent.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 768a4cc5-d734-2ee4-f853-5cc5e510f06d
Version Independent ID: 891620e5-6d3f-d730-a69e-c0206cae1020
As in much of OOP, there are two sides to events:
This article doesn't clearly differentiate between those two sides.
Specifically, the subheadings ("Call an event handler using Handles and WithEvents" and "Call an event handler using AddHandler") are confusing. How does subscribing to an event handler qualify as "calling" the event handler? And raising the event is in any case done using
RaiseEvent
.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.