Sprache

ServiceHealthBehavior.EnsureHttpStatusCode(Int32) Methode

Definition

Stellen Sie sicher, dass sich der HTTP-Statuscode im Bereich von 200 und 599 (einschließlich) befindet.

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

Parameter

code
Int32

Der HTTP-Statuscode.

Gibt zurück

truewenn sich der HTTP-Statuscode innerhalb des Bereichs von 200 bis einschließlich 599 befindet; andernfalls . false

Gilt für: