UnvalidatedRequestValuesWrapper.Headers 屬性

定義

取得用戶端傳送的 HTTP 標頭集合,而不觸發 ASP.NET 要求驗證。Gets the collection of HTTP headers that the client sent, without triggering ASP.NET request validation.

public:
 virtual property System::Collections::Specialized::NameValueCollection ^ Headers { System::Collections::Specialized::NameValueCollection ^ get(); };
public override System.Collections.Specialized.NameValueCollection Headers { get; }
member this.Headers : System.Collections.Specialized.NameValueCollection
Public Overrides ReadOnly Property Headers As NameValueCollection

屬性值

NameValueCollection

從 HTTP 要求取得標頭。The headers from the HTTP request.

備註

重要

如果您使用此屬性,則必須手動檢查資料是否有潛在的跨網站腳本攻擊。If you use this property, you must manually check the data for potential cross-site scripting attacks.

適用於