Share via


ViewEngineCollection 类

定义

表示对应用程序可用的视图引擎的集合。

public class ViewEngineCollection : System.Collections.ObjectModel.Collection<System.Web.Mvc.IViewEngine>
type ViewEngineCollection = class
    inherit Collection<IViewEngine>
Public Class ViewEngineCollection
Inherits Collection(Of IViewEngine)
继承
ViewEngineCollection

构造函数

ViewEngineCollection()

初始化 ViewEngineCollection 类的新实例。

ViewEngineCollection(IList<IViewEngine>)

使用指定的视图引擎列表初始化 类的新实例 ViewEngineCollection

方法

ClearItems()

Collection<T> 中移除所有元素。

FindPartialView(ControllerContext, String)

使用指定的控制器上下文来查找指定的分部视图。

FindView(ControllerContext, String, String)

使用指定的控制器上下文和母版视图来查找指定的视图。

InsertItem(Int32, IViewEngine)

在集合中的指定索引处插入一个元素。

RemoveItem(Int32)

移除 Collection<T> 的指定索引处的元素。

SetItem(Int32, IViewEngine)

替换指定索引处的元素。

适用于