Provides access to members that work with the category factory.
Description
Use the ICategoryFactory interface to read the information in the registry to find out what classes are in a particular category. The IComponentCategoryManager is used for writing component category information to the registry.
Members
Name | Description | |
---|---|---|
![]() |
CategoryID | The ID of the category. |
![]() |
CreateNext | Creates the next component in the category. |
ICategoryFactory.CategoryID Property
The ID of the category.
Public WriteOnly Property CategoryID
public void CategoryID {set;}
Description
Set the CategoryID to the GUID of the component category to be read.
Remarks
After the component category was specified with the CategoryID property, it points to the classes registered in that category. If more classes were added to that component category, and the CategoryID property is set second time to the same category to retrieve all registered classes including new ones, the CategoryID still points to the first state of the component category in the registry. No new classes could be retrieved in the same application runtime.
ICategoryFactory.CreateNext Method
Creates the next component in the category.
Public Function CreateNext ( _
) As Object
public object CreateNext (
);
Description
The CreateNext method retrieves classes from the specified component category. Specify the category with the CategoryID property.
Classes that implement ICategoryFactory
Classes | Description |
---|---|
CategoryFactory | Component Category Factory. |