ServiceHealthBehavior.EnsureHttpStatusCode(Int32) Methode

Definition

Stellen Sie sicher, dass der HTTP-Statuscode im Bereich zwischen 200 und 599 einschließlich liegt.

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

Boolean

true, wenn der HTTP-Statuscode im Bereich zwischen 200 und 599 einschließlich liegt; andernfalls false.

Gilt für