Class ConsentExtensions
Provides extension methods for the IConsent interface.
Inheritance
System.Object
      Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class ConsentExtensionsMethods
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 |