Open sandboxFocus

Property ValidatePattern

ValidatePattern

Gets or sets a regular expression used to identify the method called before the property is changed to perform validation. All occurrences of the substring {PropertyName} will be replaced with the name determined according to PropertyNamePattern before the expression is evaluated. The default value is ^Validate{PropertyName}$.

Declaration
public string? ValidatePattern { get; init; }
Property Value
Type Description
string