Class PublicAccessRule
Represents a rule that defines access permissions for a public access entry.
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(IsReference = true)]
public class PublicAccessRule : EntityBase, IRememberBeingDirty, ICanBeDirty, IEntity, IDeepCloneable
Constructors
View SourcePublicAccessRule()
Initializes a new instance of the PublicAccessRule class.
Declaration
public PublicAccessRule()
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 SourceAccessEntryId
Gets or sets the unique identifier of the associated public access entry.
Declaration
public Guid AccessEntryId { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
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 |
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 |