CountComponentInstances
Determines the number of open connections being managed by a specified component.
Declaration
long CountComponentInstances(Component aComponent);Parameters
- aComponent:
The component for which you want a count of open connections. You can use a component instance here, but you must coerce the data type appropriately.
Return Value
The number of open connections for the specified component.
Discussion
This function can be useful if you want to restrict the number of connections for your component or if your component needs to perform special processing based on the number of open connections.