語言

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 狀態代碼。

傳回

true如果 HTTP 狀態碼介於 200 到 599 之間;否則,。 false

適用於