Class ExceptionValidationPlugin
Validates properties that report errors by throwing exceptions.
public class ExceptionValidationPlugin : IDataValidationPlugin
- Inheritance
-
ExceptionValidationPlugin
- Implements
- Inherited Members
Constructors
ExceptionValidationPlugin()
public ExceptionValidationPlugin()
Methods
Match(WeakReference<object?>, string)
Checks whether this plugin can handle data validation on the specified object.
public bool Match(WeakReference<object?> reference, string memberName)
Parameters
reference
WeakReference<object>A weak reference to the object.
memberName
stringThe name of the member to validate.
Returns
- bool
True if the plugin can handle the object; otherwise false.
Start(WeakReference<object?>, string, IPropertyAccessor)
Starts monitoring the data validation state of a property on an object.
public IPropertyAccessor Start(WeakReference<object?> reference, string name, IPropertyAccessor inner)
Parameters
reference
WeakReference<object>A weak reference to the object.
name
stringinner
IPropertyAccessorThe inner property accessor used to access the property.
Returns
- IPropertyAccessor
An IPropertyAccessor interface through which future interactions with the property will be made.