Class Consent
Represents a consent.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(IsReference = true)]
public class Consent : EntityBase, IConsent, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties
View SourceAction
Gets the unique identifier of the consented action.
Declaration
public string Action { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Comment
Gets some additional free text.
Declaration
public string Comment { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Context
Gets the unique identifier of the context of the consent.
Declaration
public string Context { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Represents the domain, application, scope... of the action.
When the action is a Udi, this should be the Udi type.
Current
Determines whether the consent entity represents the current state.
Declaration
public bool Current { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
History
Gets the previous states of this consent.
Declaration
public IEnumerable<IConsent>? History { get; }
Property Value
Type | Description |
---|---|
System.Nullable<IEnumerable<IConsent>> |
HistoryInternal
Gets the previous states of this consent.
Declaration
public List<IConsent>? HistoryInternal { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<List<IConsent>> |
Source
Gets the unique identifier of whoever is consenting.
Declaration
public string Source { get; set; }
Property Value
Type | Description |
---|---|
System.String |
State
Gets the state of the consent.
Declaration
public ConsentState State { get; set; }
Property Value
Type | Description |
---|---|
ConsentState |