ServiceHealthBehavior.EnsureHttpStatusCode(Int32) Method

Definition

Ensure that the HTTP status code is within the range of 200 and 599, inclusive.

C#
protected static bool EnsureHttpStatusCode(int code);

Parameters

code
Int32

The HTTP status code.

Returns

true if the HTTP status code is within the range of 200 to 599, inclusive; otherwise, false.

Applies to

Produit Versions
.NET Framework 4.8, 4.8.1