TagHelperDescriptorFactory.CreateDescriptors(String, Type, ErrorSink) 方法

定义

TagHelperDescriptor从给定type的 创建 。

public:
 virtual System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Razor::Compilation::TagHelpers::TagHelperDescriptor ^> ^ CreateDescriptors(System::String ^ assemblyName, Type ^ type, Microsoft::AspNetCore::Razor::ErrorSink ^ errorSink);
public virtual System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> CreateDescriptors (string assemblyName, Type type, Microsoft.AspNetCore.Razor.ErrorSink errorSink);
abstract member CreateDescriptors : string * Type * Microsoft.AspNetCore.Razor.ErrorSink -> seq<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor>
override this.CreateDescriptors : string * Type * Microsoft.AspNetCore.Razor.ErrorSink -> seq<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor>
Public Overridable Function CreateDescriptors (assemblyName As String, type As Type, errorSink As ErrorSink) As IEnumerable(Of TagHelperDescriptor)

参数

assemblyName
String

包含 的 type程序集名称。

type
Type

要从其创建 TagHelperDescriptorType

errorSink
ErrorSink

用于ErrorSink收集RazorError在为给定 type的 创建 TagHelperDescriptor时遇到的 。

返回

描述给定 typeTagHelperDescriptor的集合。

实现

适用于