Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IObjectFactory.ContainsObject Method

Does this object factory contain an object with the given name?

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


The name of the object to query.

Return Value

True if an object with the given name is defined.


The concrete lookup strategy depends on the implementation. E.g. IHierarchicalObjectFactorys will also search their parent factory if a name isn't found .

See Also

IObjectFactory Interface | Spring.Objects.Factory Namespace