Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectFactoryUtils.CountObjectsIncludingAncestors Method

Count all object definitions in any hierarchy in which this factory participates.

[Visual Basic]
Public Shared Sub CountObjectsIncludingAncestors( _
   ByVal factory As IListableObjectFactory _
)
[C#]
public static int CountObjectsIncludingAncestors(
   IListableObjectFactory factory
);

Parameters

factory
The object factory.

Return Value

The count of objects including those defined in ancestor factories.

Remarks

Includes counts of ancestor object factories.

Objects that are "overridden" (specified in a descendant factory with the same name) are counted only once.

See Also

ObjectFactoryUtils Class | Spring.Objects.Factory Namespace