TagHelperDescriptorResolver.ResolveDescriptorsInAssembly 方法

定义

解析给定 中 s 的所有 TagHelperDescriptorITagHelperassemblyName

protected:
 virtual System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Razor::Compilation::TagHelpers::TagHelperDescriptor ^> ^ ResolveDescriptorsInAssembly(System::String ^ assemblyName, Microsoft::AspNetCore::Razor::SourceLocation documentLocation, Microsoft::AspNetCore::Razor::ErrorSink ^ errorSink);
protected virtual System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> ResolveDescriptorsInAssembly (string assemblyName, Microsoft.AspNetCore.Razor.SourceLocation documentLocation, Microsoft.AspNetCore.Razor.ErrorSink errorSink);
abstract member ResolveDescriptorsInAssembly : string * Microsoft.AspNetCore.Razor.SourceLocation * Microsoft.AspNetCore.Razor.ErrorSink -> seq<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor>
override this.ResolveDescriptorsInAssembly : string * Microsoft.AspNetCore.Razor.SourceLocation * Microsoft.AspNetCore.Razor.ErrorSink -> seq<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor>
Protected Overridable Function ResolveDescriptorsInAssembly (assemblyName As String, documentLocation As SourceLocation, errorSink As ErrorSink) As IEnumerable(Of TagHelperDescriptor)

参数

assemblyName
String

要从中解析 TagHelperDescriptor的程序集的名称。

documentLocation
SourceLocation

SourceLocation指令的 。

errorSink
ErrorSink

用于记录在给定 assemblyName的 中解析 TagHelperDescriptor时发现的错误。

返回

TagHelperDescriptor对于给定 assemblyName的 ,则为 ITagHelper

适用于