共用方式為


HttpWorkerRequest.SendStatus(Int32, String) 方法

定義

指定回應的 HTTP 狀態碼和狀態原因,例如 SendStatus(200, "Ok")

public:
 abstract void SendStatus(int statusCode, System::String ^ statusDescription);
public abstract void SendStatus (int statusCode, string statusDescription);
abstract member SendStatus : int * string -> unit
Public MustOverride Sub SendStatus (statusCode As Integer, statusDescription As String)

參數

statusCode
Int32

要傳送的狀態代碼。

statusDescription
String

要傳送的狀態說明。

適用於