HeaderElement(String, String) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 HeaderElement 类的新实例。
public:
HeaderElement(System::String ^ name, System::String ^ value);
public HeaderElement(string name, string value);
new System.Web.Caching.HeaderElement : string * string -> System.Web.Caching.HeaderElement
Public Sub New (name As String, value As String)
参数
- name
- String
HTTP 标头的名称。
- value
- String
HTTP 标头的值。
例外
name 或 value 为 null.
注解
创建类的 HeaderElement 实例时,值 name 必须始终为非 null 非空字符串。 该 value 参数可以是空字符串。