Megosztás a következőn keresztül:


TagHelperDescriptorFactory.CreateDescriptors(String, Type, ErrorSink) Method

Definition

Creates a TagHelperDescriptor from the given 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)

Parameters

assemblyName
String

The assembly name that contains type.

type
Type

The Type to create a TagHelperDescriptor from.

errorSink
ErrorSink

The ErrorSink used to collect RazorErrors encountered when creating TagHelperDescriptors for the given type.

Returns

A collection of TagHelperDescriptors that describe the given type.

Implements

Applies to