Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

StaticApplicationContext.RegisterPrototype Method

Registers a prototype object with the default object factory.

[Visual Basic]
Public Sub RegisterPrototype( _
   ByVal name As String, _
   ByVal classType As Type, _
   ByVal propertyValues As MutablePropertyValues _
)
[C#]
public void RegisterPrototype(
   string name,
   Type classType,
   MutablePropertyValues propertyValues
);

Parameters

name
The name of the prototype object.
classType
The Type of the prototype object.
propertyValues
The property values for the prototype instance.

See Also

StaticApplicationContext Class | Spring.Context.Support Namespace