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.dll)