Class DocumentGranularPermission
Represents a granular permission for a document (content) node.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.Membership.Permissions
Assembly: Umbraco.Core.dll
Syntax
public class DocumentGranularPermission : INodeGranularPermission, IGranularPermission
Constructors
View SourceDocumentGranularPermission()
Declaration
public DocumentGranularPermission()
Fields
View SourceContextType
The context type identifier for document permissions.
Declaration
public const string ContextType = "Document"
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceContext
Gets the context type identifier for this permission.
Declaration
public string Context { get; }
Property Value
| Type | Description |
|---|---|
| string |
Key
Gets or sets the unique key of the node this permission applies to.
Declaration
public required Guid Key { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid |
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(DocumentGranularPermission)
Determines whether this instance is equal to another DocumentGranularPermission.
Declaration
protected bool Equals(DocumentGranularPermission other)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentGranularPermission | other | The other instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |