FromBodyAttribute.EmptyBodyBehavior Property

Definition

Gets or sets a value which decides whether body model binding should treat empty input as valid.

public:
 property Microsoft::AspNetCore::Mvc::ModelBinding::EmptyBodyBehavior EmptyBodyBehavior { Microsoft::AspNetCore::Mvc::ModelBinding::EmptyBodyBehavior get(); void set(Microsoft::AspNetCore::Mvc::ModelBinding::EmptyBodyBehavior value); };
public Microsoft.AspNetCore.Mvc.ModelBinding.EmptyBodyBehavior EmptyBodyBehavior { get; set; }
member this.EmptyBodyBehavior : Microsoft.AspNetCore.Mvc.ModelBinding.EmptyBodyBehavior with get, set
Public Property EmptyBodyBehavior As EmptyBodyBehavior

Property Value

Remarks

The default behavior is to use framework defaults as configured by AllowEmptyInputInBodyModelBinding. Specifying Allow or Disallow will override the framework defaults.

Applies to