Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectFactoryUtils.ObjectNamesForTypeIncludingAncestors(IListableObjectFactory, Type) Method

Get all object names for the given type, including those defined in ancestor factories.

[Visual Basic]
Public Overloads Shared Sub ObjectNamesForTypeIncludingAncestors( _
   ByVal factory As IListableObjectFactory, _
   ByVal type As Type _
public static string[] ObjectNamesForTypeIncludingAncestors(
   IListableObjectFactory factory,
   Type type


If this isn't also an IHierarchicalObjectFactory, this method will return the same as it's own GetObjectDefinitionNames method.
The Type that objects must match.

Return Value

The array of object names, or an empty array if none.


Will return unique names in case of overridden object definitions.

Does consider objects created by IFactoryObjects, or rather it considers the type of objects created by IFactoryObject (which means that IFactoryObjects will be instantiated).

See Also

ObjectFactoryUtils Class | Spring.Objects.Factory Namespace | ObjectFactoryUtils.ObjectNamesForTypeIncludingAncestors Overload List