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
屬性值
A NameValueCollection 的回應標頭。
例外狀況
此操作需要 IIS 7.0 及至少 .NET Framework 3.0 版本中的整合管線模式。
備註
此 Headers 特性僅支援 IIS 7.0 整合管線模式,至少支援 .NET Framework 3.0。 當你嘗試進入 Headers 該房產,但這兩個條件中任一未達成時,就會丟棄 a PlatformNotSupportedException 。