Өзгерту

Бөлісу құралы:


ServiceHealthBehavior.EnsureHttpStatusCode(Int32) Method

Definition

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

protected:
 static bool EnsureHttpStatusCode(int code);
protected static bool EnsureHttpStatusCode (int code);
static member EnsureHttpStatusCode : int -> bool
Protected Shared Function EnsureHttpStatusCode (code As Integer) As Boolean

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