Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ThreadLocalTargetSource.GetTarget Method

Returns the target object.

[Visual Basic]
Public Overrides Sub GetTarget() _
    Implements ITargetSource.GetTarget
[C#]
public override object GetTarget();

Return Value

The target object.

Implements

ITargetSource.GetTarget

Remarks

Tries to locate the target from thread local storage. If no target is found, a target will be obtained and bound to the thread.

Exceptions

Exception Type Condition
Exception If unable to obtain the target object.

See Also

ThreadLocalTargetSource Class | Spring.Aop.Target Namespace | NewPrototypeInstance