ViewsFeatureProvider.GetViewAttributes(AssemblyPart) 方法

定义

获取与指定的 assemblyPart关联的实例序列RazorViewAttribute

protected:
 virtual System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Razor::Compilation::RazorViewAttribute ^> ^ GetViewAttributes(Microsoft::AspNetCore::Mvc::ApplicationParts::AssemblyPart ^ assemblyPart);
protected virtual System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute> GetViewAttributes (Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart assemblyPart);
abstract member GetViewAttributes : Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart -> seq<Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute>
override this.GetViewAttributes : Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart -> seq<Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute>
Protected Overridable Function GetViewAttributes (assemblyPart As AssemblyPart) As IEnumerable(Of RazorViewAttribute)

参数

assemblyPart
AssemblyPart

AssemblyPart

返回

实例序列 RazorViewAttribute

适用于