HttpResponse.Headers 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得回應標頭的集合。
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 屬性且不符合這兩個條件之一時, PlatformNotSupportedException 會擲回 。
產品 | 版本 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |