Share via


RequiredMemberModelValidator.IsRequired Property

Gets or sets a value that instructs the serialization engine that the member must be presents when validating.

Namespace:  System.Web.Http.Validation.Validators
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Overrides ReadOnly Property IsRequired As Boolean 
    Get
'Usage
Dim instance As RequiredMemberModelValidator 
Dim value As Boolean 

value = instance.IsRequired
public override bool IsRequired { get; }
public:
virtual property bool IsRequired {
    bool get () override;
}
abstract IsRequired : bool 
override IsRequired : bool
override function get IsRequired () : boolean

Property Value

Type: System.Boolean
true if the member is required; otherwise, false.

See Also

Reference

RequiredMemberModelValidator Class

System.Web.Http.Validation.Validators Namespace