Class ActionProtect
This action is invoked when a document is protected or unprotected.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Actions
Assembly: Umbraco.Core.dll
Syntax
public class ActionProtect : IAction, IDiscoverable
Fields
View SourceActionAlias
Declaration
public const string ActionAlias = "protect"
Field Value
Type | Description |
---|---|
System.String |
ActionLetter
Declaration
public const char ActionLetter = 'P'
Field Value
Type | Description |
---|---|
System.Char |
Properties
View SourceAlias
Gets the alias for this action (must be unique). This is all lower-case because of case sensitive filesystems, see issue: https://github.com/umbraco/Umbraco-CMS/issues/11670.
Declaration
public string Alias { get; }
Property Value
Type | Description |
---|---|
System.String |
CanBePermissionAssigned
Gets a value indicating whether whether to allow assigning permissions based on this action
Declaration
public bool CanBePermissionAssigned { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Category
Gets the category used for this action
Declaration
public string Category { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Used in the UI when assigning permissions
Icon
Gets the icon to display for this action
Declaration
public string Icon { get; }
Property Value
Type | Description |
---|---|
System.String |
Letter
Gets the letter used to assign a permission (must be unique).
Declaration
public char Letter { get; }
Property Value
Type | Description |
---|---|
System.Char |
ShowInNotifier
Gets a value indicating whether whether to allow subscribing to notifications for this action
Declaration
public bool ShowInNotifier { get; }
Property Value
Type | Description |
---|---|
System.Boolean |