UnvalidatedRequestValuesWrapper.Cookies 屬性

定義

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

public:
 virtual property System::Web::HttpCookieCollection ^ Cookies { System::Web::HttpCookieCollection ^ get(); };
public override System.Web.HttpCookieCollection Cookies { get; }
member this.Cookies : System.Web.HttpCookieCollection
Public Overrides ReadOnly Property Cookies As HttpCookieCollection

屬性值

HttpCookieCollection

從 HTTP 要求取得 cookie。The cookies from the HTTP request.

備註

重要

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

適用於