Class UnknownTypeGranularPermission
Represents a granular permission with an unknown or unrecognized context type.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.Membership.Permissions
Assembly: Umbraco.Core.dll
Syntax
public class UnknownTypeGranularPermission : IGranularPermission
Constructors
View SourceUnknownTypeGranularPermission()
Declaration
public UnknownTypeGranularPermission()
Properties
View SourceContext
Gets the context type identifier for this permission.
Declaration
public required string Context { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Permission
Gets or sets the permission identifier.
Declaration
public required string Permission { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(UnknownTypeGranularPermission)
Determines whether this instance is equal to another UnknownTypeGranularPermission.
Declaration
protected bool Equals(UnknownTypeGranularPermission other)
Parameters
| Type | Name | Description |
|---|---|---|
| UnknownTypeGranularPermission | other | The other instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |