UnvalidatedRequestValues.Headers 属性

定义

获取客户端发送的 HTTP 标头的集合,而无需触发请求验证。

public:
 property System::Collections::Specialized::NameValueCollection ^ Headers { System::Collections::Specialized::NameValueCollection ^ get(); };
public System.Collections.Specialized.NameValueCollection Headers { get; }
member this.Headers : System.Collections.Specialized.NameValueCollection
Public ReadOnly Property Headers As NameValueCollection

属性值

来自 HTTP 请求的标头。

注解

Important

如果使用此属性,则必须手动检查数据是否存在潜在的跨站点脚本攻击。

适用于