Class ConsentExtensions
Provides extension methods for the IConsent interface.
Inheritance
System.Object
Namespace: Umbraco.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public static class ConsentExtensions
Methods
View SourceIsGranted(IConsent)
Determines whether the consent is granted.
Declaration
public static bool IsGranted(this IConsent consent)
Parameters
Type | Name | Description |
---|---|---|
IConsent | consent |
Returns
Type | Description |
---|---|
System.Boolean |
IsRevoked(IConsent)
Determines whether the consent is revoked.
Declaration
public static bool IsRevoked(this IConsent consent)
Parameters
Type | Name | Description |
---|---|---|
IConsent | consent |
Returns
Type | Description |
---|---|
System.Boolean |