Interface IValueRequiredValidator
Defines a required value validator.
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public interface IValueRequiredValidatorMethods
View SourceValidateRequired(Object, String)
Validates a value.
Declaration
IEnumerable<ValidationResult> ValidateRequired(object value, string valueType)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | value | The value to validate. | 
| System.String | valueType | The value type. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | Validation results. | 
Remarks
This is used to validate values when the property type specifies that a value is required.