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)

取代指定之索引處的項目。

適用於