TagHelperDescriptorFactory.CreateDescriptors(String, Type, ErrorSink) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
要从其创建 TagHelperDescriptor 的 Type。
- errorSink
- ErrorSink
用于ErrorSink收集RazorError在为给定 type
的 创建 TagHelperDescriptor时遇到的 。
返回
描述给定 type
的 TagHelperDescriptor的集合。
实现
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈