Class ActionCollection
The collection of actions
Namespace: Umbraco.Cms.Core.Actions
Assembly: Umbraco.Core.dll
Syntax
public class ActionCollection : BuilderCollectionBase<IAction>, IBuilderCollection<IAction>
Constructors
View SourceActionCollection(Func<IEnumerable<IAction>>)
Initializes a new instance of the ActionCollection class.
Declaration
public ActionCollection(Func<IEnumerable<IAction>> items)
Parameters
Type | Name | Description |
---|---|---|
Func<IEnumerable<IAction>> | items |
Methods
View SourceFromEntityPermission(EntityPermission)
Gets the actions from an EntityPermission
Declaration
public IReadOnlyList<IAction> FromEntityPermission(EntityPermission entityPermission)
Parameters
Type | Name | Description |
---|---|---|
EntityPermission | entityPermission |
Returns
Type | Description |
---|---|
IReadOnlyList<IAction> |
GetAction<T>()
Gets the action of the specified type.
Declaration
public T GetAction<T>()
where T : IAction
Returns
Type | Description |
---|---|
T | The action |
Type Parameters
Name | Description |
---|---|
T | The specified type to get |
GetByVerbs(ISet<String>)
Gets the actions by the specified verbs
Declaration
public ISet<IAction> GetByVerbs(ISet<string> verbs)
Parameters
Type | Name | Description |
---|---|---|
ISet<System.String> | verbs |
Returns
Type | Description |
---|---|
ISet<IAction> |