Language

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

プロパティ値

応答ヘッダーの NameValueCollection 。

例外

この操作には、IIS 7.0 および .NET Framework バージョン 3.0 以降の統合パイプライン モードが必要です。

注釈

Headers プロパティは、IIS 7.0 統合パイプライン モードと少なくとも .NET Framework 3.0 でのみサポートされます。 Headers プロパティにアクセスしようとして、これら 2 つの条件のいずれかが満たされていない場合、PlatformNotSupportedExceptionがスローされます。

適用対象

こちらもご覧ください