Class Consent
Represents a consent.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[Serializable]
[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 |
|---|---|
| string |
Comment
Gets some additional free text.
Declaration
public string? Comment { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Context
Gets the unique identifier of the context of the consent.
Declaration
public string? Context { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 |
|---|---|
| bool |
History
Gets the previous states of this consent.
Declaration
public IEnumerable<IConsent>? History { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<IConsent> |
HistoryInternal
Gets the previous states of this consent.
Declaration
public List<IConsent>? HistoryInternal { get; set; }
Property Value
| Type | Description |
|---|---|
| List<IConsent> |
Source
Gets the unique identifier of whoever is consenting.
Declaration
public string? Source { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
State
Gets the state of the consent.
Declaration
public ConsentState State { get; set; }
Property Value
| Type | Description |
|---|---|
| ConsentState |