Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractApplicationContext.Item Property

Return an instance (possibly shared or independent) of the given object name.

[Visual Basic]
Public NotOverridable ReadOnly Property Item( _
   ByVal name As String _
) _
    Implements IObjectFactory.Item
 As Object _
    Implements IObjectFactory.Item

   Public Get
   End Get
End Property
[C#]
public object this[
   string name
] { public get; }

Parameters

name
The name of the object to return.

Implements

IObjectFactory.Item

Exceptions

Exception Type Condition
NoSuchObjectDefinitionException If there's no such object definition.
ObjectsException If the object could not be created.

See Also

AbstractApplicationContext Class | Spring.Context.Support Namespace | GetObject