<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

Properties | RequiredIfAttribute.IsInverted Property

Gets or sets a value indicating whether other property's value should match or differ from provided other property's value (default is false).

Syntax

C# Copy
public bool IsInverted { get; set; }

Property Value
Boolean
true if other property's value validation should be inverted; otherwise, false.

Remarks
How this works - true: validated property is required when other property doesn't equal provided value - false: validated property is required when other property matches provided value

See Also

Reference
RequiredIfAttribute Class
Compiled.EDD.Scripting Namespace