共用方式為


DefaultViewComponentDescriptorProvider.GetViewComponents 方法

定義

取得 的 ViewComponentDescriptor 集合。

public:
 virtual System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentDescriptor ^> ^ GetViewComponents();
public virtual System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor> GetViewComponents ();
abstract member GetViewComponents : unit -> seq<Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor>
override this.GetViewComponents : unit -> seq<Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor>
Public Overridable Function GetViewComponents () As IEnumerable(Of ViewComponentDescriptor)

傳回

的清單 ViewComponentDescriptor

實作

適用於