IListContract<T>.Insert(Int32, T) 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.
Inserts an item at the specified index in an IListContract<T> collection.
public:
void Insert(int index, T item);
public void Insert (int index, T item);
abstract member Insert : int * 'T -> unit
Public Sub Insert (index As Integer, item As T)
Parameters
- index
- Int32
The zero-based index at which to insert item
.
- item
- T
The IContract object to insert in the IListContract<T> collection.
Exceptions
The IListContract<T> collection is read-only.
Remarks
After you call the Insert method, the items that follow the insertion point move to accommodate the new item. The indexes of the items that are moved are also updated. To replace an item at a specified index, use the SetItem method.
To determine whether an IListContract<T> collection is read-only, call the GetIsReadOnly method.
Applies to
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir