Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectDefinitionBuilder.SetSingleton Method

Sets whether or not this definition describes a singleton object.

[Visual Basic]
Public Sub SetSingleton( _
   ByVal singleton As Boolean _
)
[C#]
public ObjectDefinitionBuilder SetSingleton(
   bool singleton
);

Parameters

singleton
if set to true [singleton].

Return Value

The current

ObjectDefinitionBuilder
.

See Also

ObjectDefinitionBuilder Class | Spring.Objects.Factory.Support Namespace