IListContract<C>.SetItem(Int32, C) Method
Definition
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.
Replaces the element at the specified index.
public:
void SetItem(int index, C value);
public void SetItem (int index, C value);
abstract member SetItem : int * 'C -> unit
Public Sub SetItem (index As Integer, value As C)
Parameters
- index
- Int32
The zero-based index at which to set the element.
- value
- C
The element to set at the specified index.
Exceptions
The IListContract<C> is read-only.
Remarks
The SetItem method replaces the element at the specified index. To add an element to the IListContract<C>, use the Insert method.
To determine whether an IListContract<C> is read-only, call the GetIsReadOnly method.
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про