HttpResponse.Headers 属性

定义

获取响应标头的集合。Gets the collection of response 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

属性值

响应标头的 NameValueCollectionA NameValueCollection of response headers.

异常

该操作要求使用 IIS 7.0IIS 7.0 中的集成管道模式,并且 .NET Framework 至少为 3.0 版本。The operation requires the integrated pipeline mode in IIS 7.0IIS 7.0 and at least the .NET Framework version 3.0.

注解

仅集成管道模式支持属性,且至少支持 .NET Framework 3.0。 Headers IIS 7.0IIS 7.0The Headers property is only supported with the IIS 7.0IIS 7.0 integrated pipeline mode and at least the .NET Framework 3.0. 当你尝试访问该Headers属性时,如果不满足这两个条件中的任何一个PlatformNotSupportedException ,则会引发。When you try to access the Headers property and either of these two conditions is not met, a PlatformNotSupportedException is thrown.

适用于

另请参阅