Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ObjectWrapper.SetPropertyValues(IPropertyValues, Boolean) Method

Perform a bulk update with full control over behavior.

[Visual Basic]
Public Overridable Overloads Sub SetPropertyValues( _
   ByVal propertyValues As IPropertyValues, _
   ByVal ignoreUnknown As Boolean _
) _
    Implements IObjectWrapper.SetPropertyValues
[C#]
public virtual void SetPropertyValues(
   IPropertyValues propertyValues,
   bool ignoreUnknown
);

Parameters

propertyValues
The PropertyValues to set on the target object.
ignoreUnknown
Should we ignore unknown values (not found in the object!?).

Implements

IObjectWrapper.SetPropertyValues

Remarks

This method may throw a reflection-based exception, if there is a critical failure such as no matching field... less serious exceptions will be accumulated and thrown as a single PropertyAccessExceptionsException.

Exceptions

Exception Type Condition
NotWritablePropertyException If an error is encountered while setting a property (only thrown if the ignoreUnknown parameter is set to false).
PropertyAccessExceptionsException On a Type mismatch while setting a property, insufficient permissions, etc.

See Also

ObjectWrapper Class | Spring.Objects Namespace | ObjectWrapper.SetPropertyValues Overload List | SetPropertyValues