Dela via


Managed and Unmanaged Events

The .NET Framework event model differs from the traditional COM event model. Managed events are based on delegates, whereas unmanaged events (in COM) are based on connection points. Both models are tightly coupled event systems, because the client (event receiver) and server (event sender) must run simultaneously.

This section explains how to bridge the managed and unmanaged COM event systems, enabling objects to send and receive events across the interoperation boundary. For specific event syntax, see your programming language documentation.

Note that the .NET Framework does not natively provide a way to interact with Win32 events. To interact with Win32 events, use platform invoke to call the native Win32 event functions from the Win32 API. For more information about platform invoke, see Consuming Unmanaged DLL Functions.

In This Section