Поделиться через


ViewsFeatureProvider.GetViewAttributes(AssemblyPart) Метод

Определение

Возвращает последовательность экземпляров RazorViewAttribute , связанных с указанным assemblyPartобъектом .

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 экземпляров.

Применяется к