共用方式為


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

屬性值

A NameValueCollection 的回應標頭。

例外狀況

此操作需要 IIS 7.0 及至少 .NET Framework 3.0 版本中的整合管線模式。

備註

Headers 特性僅支援 IIS 7.0 整合管線模式,至少支援 .NET Framework 3.0。 當你嘗試進入 Headers 該房產,但這兩個條件中任一未達成時,就會丟棄 a PlatformNotSupportedException

適用於

另請參閱