ViewComponentDescriptorCollection Class¶
Summary¶
A cached collection of [Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor](Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor.yml).
Constructors¶
-
ViewComponentDescriptorCollection
(System.Collections.Generic.IEnumerable<Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor>, System.Int32)¶ Initializes a new instance of the [Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptorCollection](Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptorCollection.yml).
Arguments: - items (System.Collections.Generic.IEnumerable{Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor}) – The result of view component discovery
- version (System.Int32) – The unique version of discovered view components.
public ViewComponentDescriptorCollection(IEnumerable<ViewComponentDescriptor> items, int version)
-
Properties¶
-
Items
()¶ Returns the cached [System.Collections.Generic.IReadOnlyList`1]().
Return type: System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor} public IReadOnlyList<ViewComponentDescriptor> Items { get; }
-
Version
()¶ Returns the unique version of the currently cached items.
Return type: System.Int32 public int Version { get; }
-