Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractApplicationContext.IsSingleton Method

Is this object a singleton?

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

Parameters

name
The name of the object to query.

Return Value

True if the named object is a singleton.

Implements

IObjectFactory.IsSingleton

Exceptions

Exception Type Condition
NoSuchObjectDefinitionException If there's no such object definition.

See Also

AbstractApplicationContext Class | Spring.Context.Support Namespace | IsSingleton