Class IndeiValidationPlugin
Validates properties on objects that implement INotifyDataErrorInfo.
public class IndeiValidationPlugin : IDataValidationPlugin
- Inheritance
-
IndeiValidationPlugin
- Implements
- Inherited Members
Constructors
IndeiValidationPlugin()
public IndeiValidationPlugin()
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 accessor)
Parameters
reference
WeakReference<object>A weak reference to the object.
name
stringaccessor
IPropertyAccessor
Returns
- IPropertyAccessor
An IPropertyAccessor interface through which future interactions with the property will be made.