共用方式為


ServiceHealthBehavior.EnsureHttpStatusCode(Int32) 方法

定義

確定 HTTP 狀態碼介於 200-599 的範圍內 (包含頭尾)。

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

參數

code
Int32

HTTP 狀態碼。

傳回

Boolean

若 HTTP 狀態碼介於 200-599 的範圍內 (包含頭尾),即為 true;否則為 false

適用於