Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Replaces the element at the specified index.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Overrides Sub SetItem ( _
index As Integer, _
item As IViewEngine _
)
protected override void SetItem(
int index,
IViewEngine item
)
protected:
virtual void SetItem(
int index,
IViewEngine^ item
) override
Parameters
- index
Type: System.Int32
The zero-based index of the element to replace.
- item
Type: System.Web.Mvc.IViewEngine
The new value for the element at the specified index.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than zero. -or- index is greater than the number of items in the collection. |
| ArgumentNullException | The item parameter is null reference (Nothing in Visual Basic). |