Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractApplicationContext.GetObject(String) Method

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

[Visual Basic]
Public NotOverridable Overloads Sub GetObject( _
   ByVal name As String _
) _
    Implements IObjectFactory.GetObject
[C#]
public object GetObject(
   string name
);

Parameters

name
The name of the object to return.

Return Value

The instance of the object.

Implements

IObjectFactory.GetObject

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 | AbstractApplicationContext.GetObject Overload List | GetObject