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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.