HttpStatusDescription 类

提供标准 HTTP 状态说明。 此类不能被继承。

internal static class HttpStatusDescription

警告

此类是内部的,不应在代码中直接使用。

在任何情况下,Microsoft 都不支持在生产应用程序中使用此类。

Get 方法

返回与指定的 HTTP 状态代码关联的说明。

internal static string Get(int code)

参数

code Int32

HTTP 状态代码,例如 404

返回值

System.String

HTTP 状态说明。

要求

命名空间:System.Net

程序集:System(在 System.dll 中)