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

RuleFromBoolPropertyAttribute Constructors

Defines a validation rule that demands a true value for the target public non-persistent Boolean property.
Name Parameters Description
RuleFromBoolPropertyAttribute() none Initializes a new instance of the RuleFromBoolPropertyAttribute class.
RuleFromBoolPropertyAttribute(DefaultContexts) targetContexts Initializes a new instance of the RuleFromBoolPropertyAttribute class.
RuleFromBoolPropertyAttribute(String, DefaultContexts) id, targetContexts Initializes a new instance of the RuleFromBoolPropertyAttribute class.
RuleFromBoolPropertyAttribute(String, DefaultContexts, String) id, targetContexts, messageTemplate Initializes a new instance of the RuleFromBoolPropertyAttribute class.
RuleFromBoolPropertyAttribute(String, String) id, targetContextIDs Initializes a new instance of the RuleFromBoolPropertyAttribute class.
RuleFromBoolPropertyAttribute(String, String, String) id, targetContextIDs, messageTemplate Initializes a new instance of the RuleFromBoolPropertyAttribute class.
See Also