UnvalidatedRequestValuesBase.Cookies 属性

定义

在派生类中重写时,获取客户端发送的 cookies 集合,不触发 ASP.NET 请求验证。When overridden in a derived class, 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 virtual System.Web.HttpCookieCollection Cookies { get; }
member this.Cookies : System.Web.HttpCookieCollection
Public Overridable ReadOnly Property Cookies As HttpCookieCollection

属性值

HttpCookieCollection

来自 HTTP 请求的 cookie。The cookies from the HTTP request.

例外

未实现该属性。The property is not implemented.

继承者说明

如果在派生类中重写此属性,则必须手动检查数据是否存在潜在的跨站点脚本攻击。If you override this property in a derived class, you must manually check the data for potential cross-site scripting attacks.

适用于