Search Results for

    Show / Hide Table of Contents
    View Source

    Class Consent

    Represents a consent.

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(IsReference = true)]
    public class Consent : EntityBase, IConsent, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Properties

    View Source

    Action

    Gets the unique identifier of the consented action.

    Declaration
    public string Action { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Comment

    Gets some additional free text.

    Declaration
    public string Comment { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    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.

    View Source

    Current

    Determines whether the consent entity represents the current state.

    Declaration
    public bool Current { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    History

    Gets the previous states of this consent.

    Declaration
    public IEnumerable<IConsent>? History { get; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<IConsent>>
    View Source

    HistoryInternal

    Gets the previous states of this consent.

    Declaration
    public List<IConsent>? HistoryInternal { get; set; }
    Property Value
    Type Description
    System.Nullable<List<IConsent>>
    View Source

    Source

    Gets the unique identifier of whoever is consenting.

    Declaration
    public string Source { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    State

    Gets the state of the consent.

    Declaration
    public ConsentState State { get; set; }
    Property Value
    Type Description
    ConsentState
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Action
      • Comment
      • Context
      • Current
      • History
      • HistoryInternal
      • Source
      • State
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX