Share via


InputFormatterContext.TreatEmptyInputAsDefaultValue Property

Definition

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

Property Value

Applies to