Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractObjectFactory.ApplyObjectPropertyValues Method

Apply the property values of the object definition with the supplied name to the supplied instance.

[Visual Basic]
Public Overridable Sub ApplyObjectPropertyValues( _
   ByVal instance As Object, _
   ByVal name As String _
)
[C#]
public virtual void ApplyObjectPropertyValues(
   object instance,
   string name
);

Parameters

instance
The existing object that the property values for the named object will be applied to.
name
The name of the object definition associated with the property values that are to be applied.

Remarks

The object definition can either define a fully self-contained object, reusing it's property values, or just property values meant to be used for existing object instances.

Exceptions

Exception Type Condition
ObjectsException In case of errors.

See Also

AbstractObjectFactory Class | Spring.Objects.Factory.Support Namespace