Creates and serves native ClassDescs during plug-in assembly load.
During plug-in assembly load, a TypeLoaded event handler recognizes concrete implementations of ClassDescFactory. When a ClassDescFactory is encountered, the recognizer instantiates it then calls its CreateClassDescs method, registering any served ClassDescs with the application. It also maintains a reference to the ClassDescWrappers served by the factory, and cleans them up during the AssemblyShutdown phase before application termination. By serving its ClassDescs wrapped in ClassDescOwner objects, a plug-in may free itself from memory management responsibility for its native ClassDesc resources.
Public Member Functions |
|
System::Collections::Generic::IEnumerable < ClassDescWrapper^> |
CreateClassDescs () |
Serve the plug-in assembly's native
ClassDescs to register them with the plug-in manager. |
System::Collections::Generic::IEnumerable<ClassDescWrapper^> ManagedServices::ClassDescFactory::CreateClassDescs | ( | ) |
Serve the plug-in assembly's native ClassDescs to register them with the plug-in manager.
<return>An enumerable list of ClassDescWrapper objects</return>