ViewsFeatureProvider 类

定义

注意

This type is obsolete and will be removed in a future version. See IRazorCompiledItemProvider for alternatives.

C#
public class ViewsFeatureProvider : Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider<Microsoft.AspNetCore.Mvc.Razor.Compilation.ViewsFeature>
C#
[System.Obsolete("This type is obsolete and will be removed in a future version. See IRazorCompiledItemProvider for alternatives.")]
public class ViewsFeatureProvider : Microsoft.AspNetCore.Mvc.ApplicationParts.IApplicationFeatureProvider<Microsoft.AspNetCore.Mvc.Razor.Compilation.ViewsFeature>
继承
ViewsFeatureProvider
属性
实现

构造函数

字段

PrecompiledViewsAssemblySuffix
已过时.

获取视图程序集的后缀。

ViewInfoContainerNamespace
已过时.

获取视图程序集中 ViewInfoContainer 类型的命名空间。

ViewInfoContainerTypeName
已过时.

获取视图程序集中视图集合类型的类型名称。

方法

GetViewAttributes(AssemblyPart)
已过时.

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

GetViewInfoContainerType(AssemblyPart)
已过时.

获取指定 assemblyPartViewInfoContainer 类型。

PopulateFeature(IEnumerable<ApplicationPart>, ViewsFeature)
已过时.

feature汇报实例。

适用于

产品 版本 (已过时)
ASP.NET Core 1.1, 2.0 ( 2.1, 2.2)