CookiePolicyOptions.CheckConsentNeeded 属性

定义

检查是否应对此请求评估同意策略。 默认值为 false。

public:
 property Func<Microsoft::AspNetCore::Http::HttpContext ^, bool> ^ CheckConsentNeeded { Func<Microsoft::AspNetCore::Http::HttpContext ^, bool> ^ get(); void set(Func<Microsoft::AspNetCore::Http::HttpContext ^, bool> ^ value); };
public Func<Microsoft.AspNetCore.Http.HttpContext,bool> CheckConsentNeeded { get; set; }
public Func<Microsoft.AspNetCore.Http.HttpContext,bool>? CheckConsentNeeded { get; set; }
member this.CheckConsentNeeded : Func<Microsoft.AspNetCore.Http.HttpContext, bool> with get, set
Public Property CheckConsentNeeded As Func(Of HttpContext, Boolean)

属性值

适用于