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.

備註

只有整合式管線模式才支援Headers IIS 7.0IIS 7.0屬性,而且至少 .NET Framework 3.0。The 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.

適用於

另請參閱