MvcOptions.ReturnHttpNotAcceptable 屬性

定義

取得或設定旗標,這個旗標會決定如果未選取任何格式器來格式化回應,則會傳回 HTTP 406 不可接受的回應。 預設為 false

public:
 property bool ReturnHttpNotAcceptable { bool get(); void set(bool value); };
public bool ReturnHttpNotAcceptable { get; set; }
member this.ReturnHttpNotAcceptable : bool with get, set
Public Property ReturnHttpNotAcceptable As Boolean

屬性值

適用於