.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RuleRequiredFieldAttribute Constructors

Defines a validation rule that demands that a property have a value.

Name Parameters Description
RuleRequiredFieldAttribute() none

Initializes a new instance of the RuleRequiredFieldAttribute class.

RuleRequiredFieldAttribute(DefaultContexts) targetContexts

Initializes a new instance of the RuleRequiredFieldAttribute class.

RuleRequiredFieldAttribute(String, DefaultContexts) id, targetContexts

Initializes a new instance of the RuleRequiredFieldAttribute class.

RuleRequiredFieldAttribute(String, DefaultContexts, String) id, targetContexts, messageTemplate

Initializes a new instance of the RuleRequiredFieldAttribute class.

RuleRequiredFieldAttribute(String, String) id, targetContextIDs

Initializes a new instance of the RuleRequiredFieldAttribute class.

RuleRequiredFieldAttribute(String, String, String) id, targetContextIDs, messageTemplate

Initializes a new instance of the RuleRequiredFieldAttribute class.

See Also