ObservableValidator.ValidateProperty(Object, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates a property with a specified name and a given input value. If any changes are detected, the ErrorsChanged event will be raised.
protected void ValidateProperty (object? value, string? propertyName = default);
protected internal void ValidateProperty (object? value, string? propertyName = default);
member this.ValidateProperty : obj * string -> unit
Protected Sub ValidateProperty (value As Object, Optional propertyName As String = Nothing)
Protected Friend Sub ValidateProperty (value As Object, Optional propertyName As String = Nothing)
Parameters
- value
- Object
The value to test for the specified property.
- propertyName
- String
The name of the property to validate.
Exceptions
Thrown when propertyName
is null
.