IListContract<T>.SetItem(Int32, T) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the item at the specified index in an IListContract<T> collection.
public:
void SetItem(int index, T item);
public void SetItem(int index, T item);
abstract member SetItem : int * 'T -> unit
Public Sub SetItem (index As Integer, item As T)
- index
- Int32
The zero-based index at which to set the item.
- item
- T
The item to set at the specified index.
index
is less than zero.
-or-
index
is equal to or greater than the return value of the GetCount() method.
The IListContract<T> collection is read-only.
The SetItem method sets the item at the specified index. To add an item to the IListContract<T> collection, use the Insert method.
To determine whether an IListContract<T> collection is read-only, call the GetIsReadOnly method.
Proizvod | Verzije |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: