ViewEngineCollection Class

Definition

Represents a collection of view engines that are available to the application.

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

Constructors

ViewEngineCollection()

Initializes a new instance of the ViewEngineCollection class.

ViewEngineCollection(IList<IViewEngine>)

Initializes a new instance of the ViewEngineCollection class using the specified list of view engines.

Methods

ClearItems()

Removes all elements from the Collection<T>.

FindPartialView(ControllerContext, String)

Finds the specified partial view by using the specified controller context.

FindView(ControllerContext, String, String)

Finds the specified view by using the specified controller context and master view.

InsertItem(Int32, IViewEngine)

Inserts an element into the collection at the specified index.

RemoveItem(Int32)

Removes the element at the specified index of the Collection<T>.

SetItem(Int32, IViewEngine)

Replaces the element at the specified index.

Applies to