共用方式為


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

適用於