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 _
)
[C#]
bool ContainsObject(
   string name
);

Parameters

name
The name of the object to query.

Return Value

True if an object with the given name is defined.

Remarks

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