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 : IActionReturns
| Type | Description | 
|---|---|
| T | The action | 
Type Parameters
| Name | Description | 
|---|---|
| T | The specified type to get | 
GetByLetters(IEnumerable<String>)
Gets the actions by the specified letters
Declaration
public IEnumerable<IAction> GetByLetters(IEnumerable<string> letters)Parameters
| Type | Name | Description | 
|---|---|---|
| IEnumerable<System.String> | letters | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<IAction> |