Share via


ViewComponentDescriptorCollection Constructor

Definition

Initializes a new instance of the ViewComponentDescriptorCollection.

public:
 ViewComponentDescriptorCollection(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentDescriptor ^> ^ items, int version);
public ViewComponentDescriptorCollection (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor> items, int version);
new Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptorCollection : seq<Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor> * int -> Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptorCollection
Public Sub New (items As IEnumerable(Of ViewComponentDescriptor), version As Integer)

Parameters

items
IEnumerable<ViewComponentDescriptor>

The result of view component discovery

version
Int32

The unique version of discovered view components.

Applies to