HtmlMeta.HttpEquiv 属性

定义

获取或设置 HTTP 响应标头中包含的 HtmlMeta 控件属性。Gets or sets an HtmlMeta control property that is included in the HTTP response header.

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

属性值

String

HTTP 响应标头项的名称。The name of the HTTP response header item.

注解

使用 HttpEquiv 属性代替 Name 属性来标识应包含在 HTTP 请求的响应标头中的信息。Use the HttpEquiv property in place of the Name property to identify information that should be included in the response headers of an HTTP request.

HttpEquiv属性呈现为 http-equiv 生成的 HTML 元素的特性 <meta>The HttpEquiv property is rendered to the http-equiv attribute of the resulting HTML <meta> element.

适用于

另请参阅