HttpResponseWrapper.StatusDescription 属性

定义

获取或设置返回到客户端的输出的 HTTP 状态消息。

public:
 virtual property System::String ^ StatusDescription { System::String ^ get(); void set(System::String ^ value); };
public override string StatusDescription { get; set; }
member this.StatusDescription : string with get, set
Public Overrides Property StatusDescription As String

属性值

String

返回到客户端的 HTTP 输出的状态消息。 默认值为 "OK"。 有关有效状态代码的信息,请参阅 HTTP 状态代码

例外

发送 HTTP 标头后设置 StatusDescription

状态值的长度大于 512 个字符。

适用于