Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IHierarchicalObjectFactory.ContainsLocalObject Method

Determines whether the local object factory contains a bean of the given name, ignoring object defined in ancestor contexts, also resolving a given alias if necessary. This is an alternative to

, ignoring an object of the given name from an ancestor object factory.

[Visual Basic]
Public Sub ContainsLocalObject( _
   ByVal name As String _
bool ContainsLocalObject(
   string name


The name of the object to query.

Return Value

true if objects with the specified name is defined in the local factory; otherwise, false.

See Also

IHierarchicalObjectFactory Interface | Spring.Objects.Factory Namespace