Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublicAccessRule

    Represents a rule that defines access permissions for a public access entry.

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

    Constructors

    View Source

    PublicAccessRule()

    Initializes a new instance of the PublicAccessRule class.

    Declaration
    public PublicAccessRule()
    View Source

    PublicAccessRule(Guid, Guid)

    Initializes a new instance of the PublicAccessRule class with the specified identifiers.

    Declaration
    public PublicAccessRule(Guid id, Guid accessEntryId)
    Parameters
    Type Name Description
    Guid id

    The unique identifier of the rule.

    Guid accessEntryId

    The unique identifier of the associated access entry.

    Properties

    View Source

    AccessEntryId

    Gets or sets the unique identifier of the associated public access entry.

    Declaration
    public Guid AccessEntryId { get; set; }
    Property Value
    Type Description
    Guid
    View Source

    RuleType

    Gets or sets the type of the rule (e.g., "Username" or "MemberType").

    Declaration
    public string? RuleType { get; set; }
    Property Value
    Type Description
    string
    View Source

    RuleValue

    Gets or sets the value of the rule (e.g., member username or group name).

    Declaration
    public string? RuleValue { get; set; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX