View Source
Class ConsentDto
Represents a data transfer object (DTO) that encapsulates user consent details.
Assembly: Umbraco.Infrastructure.dll
Syntax
Constructors
View Source
ConsentDto()
Declaration
Fields
View Source
PrimaryKeyColumnName
Declaration
public const string PrimaryKeyColumnName = "id"
Field Value
View Source
TableName
Declaration
public const string TableName = "umbracoConsent"
Field Value
Properties
View Source
Action
Gets or sets the name or description of the action associated with the consent. This value is mapped to the 'action' column in the database.
Declaration
[Length(512)]
public string? Action { get; set; }
Property Value
View Source
Gets or sets the comment associated with the consent.
Declaration
[NullSetting(NullSetting = NullSettings.Null)]
public string? Comment { get; set; }
Property Value
View Source
Context
Gets or sets the context in which the consent was given, such as the application or feature.
Declaration
[Length(128)]
public string? Context { get; set; }
Property Value
View Source
CreateDate
Gets or sets the date and time when the consent was created.
Declaration
[Constraint(Default = SystemMethods.CurrentUTCDateTime)]
public DateTime CreateDate { get; set; }
Property Value
| Type |
Description |
| DateTime |
|
View Source
Current
Gets or sets a value indicating whether this consent is the current one.
Declaration
public bool Current { get; set; }
Property Value
View Source
Id
Gets or sets the unique identifier for the consent record.
Declaration
[PrimaryKeyColumn]
public int Id { get; set; }
Property Value
View Source
Source
Gets or sets the origin or context from which the consent was obtained.
Declaration
[Length(512)]
public string? Source { get; set; }
Property Value
View Source
State
Gets or sets the state of the consent, represented as an integer value.
The meaning of the state values depends on the consent implementation.
Declaration
public int State { get; set; }
Property Value