Chapter 13. Exposing .NET Events to COM Clients

In This Chapter

Exposing Events Without Using Extra CLR Support

Exposing Events Using Extra CLR Support

Example: Handling a .NET Windows Form’s Events from COM

Events are a popular way to expose callback functionality in .NET, and are used extensively in the .NET Framework. That’s why it’s great that the type library importer exposes COM classes that use COM’s connection point protocol as .NET classes with .NET events, as explained in Chapter 5, “Responding to COM Events.” Unfortunately, as described in Chapter 10, “Advanced Topics for Using .NET Components,” the reverse direction (exposing .NET events via connection points) isn’t automatically handled by COM Interoperability. A .NET instance ...

Get .NET and COM: The Complete Interoperability Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.