Search Results for

    Show / Hide Table of Contents
    View Source

    Class ConsentDto

    Represents a data transfer object (DTO) that encapsulates user consent details.

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Persistence.Dtos
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class ConsentDto

    Constructors

    View Source

    ConsentDto()

    Declaration
    public ConsentDto()

    Fields

    View Source

    PrimaryKeyColumnName

    Declaration
    public const string PrimaryKeyColumnName = "id"
    Field Value
    Type Description
    string
    View Source

    TableName

    Declaration
    public const string TableName = "umbracoConsent"
    Field Value
    Type Description
    string

    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
    Type Description
    string
    View Source

    Comment

    Gets or sets the comment associated with the consent.

    Declaration
    [NullSetting(NullSetting = NullSettings.Null)]
    public string? Comment { get; set; }
    Property Value
    Type Description
    string
    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
    Type Description
    string
    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
    Type Description
    bool
    View Source

    Id

    Gets or sets the unique identifier for the consent record.

    Declaration
    [PrimaryKeyColumn]
    public int Id { get; set; }
    Property Value
    Type Description
    int
    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
    Type Description
    string
    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
    Type Description
    int
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX