Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.GetObjectDefinition(String, Boolean) Method

Return the registered IObjectDefinition for the given object, allowing access to its property values and constructor argument values.

[Visual Basic]
Public MustOverride Overloads Sub GetObjectDefinition( _
   ByVal name As String, _
   ByVal includeAncestors As Boolean _
public abstract IObjectDefinition GetObjectDefinition(
   string name,
   bool includeAncestors


The name of the object.
Whether to search parent object factories.

Return Value

The registered IObjectDefinition.


Exception Type Condition
NoSuchObjectDefinitionException If there is no object with the given name.
ObjectsException In the case of errors.

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace | AbstractObjectFactory.GetObjectDefinition Overload List