CompareAttribute.RequiresValidationContext Property

.NET Framework 4.6 and 4.5

Gets a value that indicates whether the attribute requires validation context.

Namespace:  System.ComponentModel.DataAnnotations
Assemblies:   System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
  System.ComponentModel.Annotations (in System.ComponentModel.Annotations.dll)

public override bool RequiresValidationContext { get; }

Property Value

Type: System.Boolean
true if the attribute requires validation context; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft