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


ITagHelperDescriptorFactory.CreateDescriptors(String, Type, ErrorSink) Method

Definition

Creates a TagHelperDescriptor from the given type.

public:
 System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Razor::Compilation::TagHelpers::TagHelperDescriptor ^> ^ CreateDescriptors(System::String ^ assemblyName, Type ^ type, Microsoft::AspNetCore::Razor::ErrorSink ^ errorSink);
public 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>
Public 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.

Applies to