Dela via


CookiePolicyOptions.ConsentCookie Property

Definition

Gets or sets the CookieBuilder that is used to track if the user consented to the cookie use policy.

public:
 property Microsoft::AspNetCore::Http::CookieBuilder ^ ConsentCookie { Microsoft::AspNetCore::Http::CookieBuilder ^ get(); void set(Microsoft::AspNetCore::Http::CookieBuilder ^ value); };
public Microsoft.AspNetCore.Http.CookieBuilder ConsentCookie { get; set; }
member this.ConsentCookie : Microsoft.AspNetCore.Http.CookieBuilder with get, set
Public Property ConsentCookie As CookieBuilder

Property Value

Remarks

If an explicit Name is not provided, the system will automatically generate a unique name that begins with .AspNet.Consent.

Applies to