InputFormatterContext.TreatEmptyInputAsDefaultValue 屬性

定義

取得旗標,指出輸入格式器是否應該允許提供任何值。 如果 false 為 ,則輸入格式器應該藉由傳回 NoValueAsync() 來處理空的輸入。 如果 true 為 ,則輸入格式器應該藉由傳回類型的 ModelType 預設值來處理空的輸入。

public:
 property bool TreatEmptyInputAsDefaultValue { bool get(); };
public bool TreatEmptyInputAsDefaultValue { get; }
member this.TreatEmptyInputAsDefaultValue : bool
Public ReadOnly Property TreatEmptyInputAsDefaultValue As Boolean

屬性值

適用於