Aracılığıyla paylaş


ExceptionHandlerOptions.AllowStatusCode404Response Özellik

Tanım

Bu değer, 404 durum koduna sahip bir yanıtın yürütülmesinin ExceptionHandlergeçerli bir sonucu olup olmadığını ExceptionHandlerMiddleware denetler. Varsayılan değer false'tur ve ara yazılım 404 durum kodlarını sunucuda bir hata olarak kabul eder ve bu nedenle özgün özel durumu yeniden oluşturur.

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

Özellik Değeri

Şunlara uygulanır