共用方式為


ViewComponentDescriptorCollection 建構函式

定義

初始化 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)

參數

items
IEnumerable<ViewComponentDescriptor>

檢視元件探索的結果

version
Int32

探索到檢視元件的唯一版本。

適用於