Språk

ServiceHealthBehavior.EnsureHttpStatusCode(Int32) Metod

Definition

Kontrollera att HTTP-statuskoden ligger inom intervallet 200 och 599, inklusive.

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

Parametrar

code
Int32

HTTP-statuskoden.

Returer

trueom HTTP-statuskoden ligger inom intervallet 200 till 599, inklusive; annars . false

Gäller för