ViewEngineCollection.InsertItem(Int32, IViewEngine) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在集合中的指定索引处插入一个元素。
protected override void InsertItem(int index, System.Web.Mvc.IViewEngine item);
override this.InsertItem : int * System.Web.Mvc.IViewEngine -> unit
Protected Overrides Sub InsertItem (index As Integer, item As IViewEngine)
参数
- index
- Int32
从零开始的索引,应在该位置插入项。
- item
- IViewEngine
要插入的对象。
例外
index
小于零。-或-index
大于集合中的项数。
item
参数为 null。