System.Win.ComObj.TComClassManager.ForEachFactory

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ForEachFactory(ComServer: TComServerObject;
FactoryProc: TFactoryProc);

C++

void __fastcall ForEachFactory(TComServerObject* ComServer, TFactoryProc FactoryProc);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TComClassManager

Description

Processes iterative actions on factories associated with a given server.

ForEachFactory is used to process an action, specified by the FactoryProc parameter, on all class factories in the factory list that are owned by the ComServer specified by the ComServer parameter.

ForEachFactory is used internally by the COM server to:

  • Destroy factories when the associated COM server unloads.
  • Have factories register their class objects in the system registry, when the associated COM server initializes.
  • Have the factories update the system registry when necessary.

TFactoryProc is the method-pointer type of the FactoryProc parameter of ForEachProperty. TFactoryProc defines a method that takes a class factory as a parameter.

See Also