ITagHelperTypeResolver.Resolve(String, SourceLocation, ErrorSink) 方法

定义

从名为 nameAssembly 中找到有效ITagHelper类型。

public:
 System::Collections::Generic::IEnumerable<Type ^> ^ Resolve(System::String ^ name, Microsoft::AspNetCore::Razor::SourceLocation documentLocation, Microsoft::AspNetCore::Razor::ErrorSink ^ errorSink);
public System.Collections.Generic.IEnumerable<Type> Resolve (string name, Microsoft.AspNetCore.Razor.SourceLocation documentLocation, Microsoft.AspNetCore.Razor.ErrorSink errorSink);
abstract member Resolve : string * Microsoft.AspNetCore.Razor.SourceLocation * Microsoft.AspNetCore.Razor.ErrorSink -> seq<Type>
Public Function Resolve (name As String, documentLocation As SourceLocation, errorSink As ErrorSink) As IEnumerable(Of Type)

参数

name
String

要搜索的 的名称 Assembly

documentLocation
SourceLocation

SourceLocation负责当前Resolve(String, SourceLocation, ErrorSink)调用的关联 SyntaxTreeNode 的 。

errorSink
ErrorSink

用于 ErrorSink 记录解析类型时发现的错误的 ITagHelper

返回

有效IEnumerable<T>ITagHelper类型的 。

适用于