FromBodyAttribute.EmptyBodyBehavior Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for