ActionDescriptorCollection Class

A cached collection of Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor.

Namespace
Microsoft.AspNetCore.Mvc.Infrastructure
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class ActionDescriptorCollection
class Microsoft.AspNetCore.Mvc.Infrastructure.ActionDescriptorCollection

Constructors

ActionDescriptorCollection(System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor>, System.Int32)

Initializes a new instance of the Microsoft.AspNetCore.Mvc.Infrastructure.ActionDescriptorCollection.

Arguments:
public ActionDescriptorCollection(IReadOnlyList<ActionDescriptor> items, int version)

Properties

Microsoft.AspNetCore.Mvc.Infrastructure.ActionDescriptorCollection.Items

Returns the cached System.Collections.Generic.IReadOnlyList`1.

Return type:System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor>
public IReadOnlyList<ActionDescriptor> Items { get; }
Microsoft.AspNetCore.Mvc.Infrastructure.ActionDescriptorCollection.Version

Returns the unique version of the currently cached items.

Return type:System.Int32
public int Version { get; }