Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IObjectWrapper.SetPropertyValues(IPropertyValues) Method

Set a number of property values in bulk.

[Visual Basic]
Public Sub SetPropertyValues( _
   ByVal values As IPropertyValues _
void SetPropertyValues(
   IPropertyValues values


The collection of PropertyValue instances to set on the wrapped object.


This is the preferred way to perform a bulk update.

Note that performing a bulk update differs from performing a single update, in that an implementation of this class will continue to update properties if a recoverable error (such as a vetoed property change or a type mismatch, but not an invalid property name or the like) is encountered, throwing a PropertyAccessExceptionsException containing all the individual errors. This exception can be examined later to see all binding errors. Properties that were successfully updated stay changed.

Does not allow the setting of unknown fields. Equivalent to SetPropertyValues with an argument of false for the second parameter.

See Also

IObjectWrapper Interface | Spring.Objects Namespace | IObjectWrapper.SetPropertyValues Overload List