InputFormatterContext.TreatEmptyInputAsDefaultValue 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 a flag to indicate whether the input formatter should allow no value to be provided.
If false
, the input formatter should handle empty input by returning
NoValueAsync(). If true
, the input
formatter should handle empty input by returning the default value for the type
ModelType.
public:
property bool TreatEmptyInputAsDefaultValue { bool get(); };
public bool TreatEmptyInputAsDefaultValue { get; }
member this.TreatEmptyInputAsDefaultValue : bool
Public ReadOnly Property TreatEmptyInputAsDefaultValue As Boolean