RequiredAttribute Class

RequiredAttribute Class

Indicates that the property is required. This applies to the back office application only, it is still possible to omit a value programmatically.

[AttributeUsage(AttributeTargets.Property)]
public sealed class RequiredAttribute: Attribute, IPropertyModelAttribute

Inheritance  Attribute RequiredAttribute

Implements  IPropertyModelAttribute

Properties

Name Description
ValidationMessage

Methods

Name Description
Apply(PropertyDefinition)