语言

HttpResponse.Headers 属性

定义

获取响应标头的集合。

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

属性值

NameValueCollection响应标头。

例外

该操作需要 IIS 7.0 和至少 .NET Framework 版本 3.0 中的集成管道模式。

注解

该 Headers 属性仅支持 IIS 7.0 集成管道模式和至少 .NET Framework 3.0。 尝试访问 Headers 该属性时,未满足这两个条件之一,则会引发 a PlatformNotSupportedException 。

适用于

另请参阅