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

要发送的状态说明。

适用于