Class CookieManagerExtensions
Extension methods for ICookieManager.
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class CookieManagerExtensions
Methods
View SourceGetPreviewCookieValue(ICookieManager)
Gets the value of the preview cookie.
Declaration
public static string? GetPreviewCookieValue(this ICookieManager cookieManager)
Parameters
| Type | Name | Description |
|---|---|---|
| ICookieManager | cookieManager | The cookie manager. |
Returns
| Type | Description |
|---|---|
| string | The preview cookie value if found; otherwise, |