Gemstone IO Library
Show/Hide TOC

# RollingWindow T Insert Method

Inserts an item to the RollingWindowT at the specified index.

## Definition

Namespace: Gemstone.IO.Collections
Assembly: Gemstone.IO (in Gemstone.IO.dll) Version: 1.0.164 -- Release Build+2ecc531835795528430ed2deb03705370b950bd8
C#
View Source Request Example

    public void Insert(
    	int index,
    	T item
    )

VB
View Source Request Example

    Public Sub Insert (
    	index As Integer,
    	item As T
    )

C++
View Source Request Example

    public:
    virtual void Insert(
    	int index,
    	T item
    ) sealed

JavaScript
View Source Request Example

    function Insert(index, item);

#### Parameters

index Int32
  The zero-based index at which item should be inserted.
item T
  The object to insert into the RollingWindowT.

#### Implements

IListT Insert(Int32, T)

## Exceptions

ArgumentOutOfRangeException | index is not a valid index in the RollingWindowT.
InvalidOperationException | Rolling window is full (Count = WindowSize.

## See Also

#### Reference

RollingWindowT Class
Gemstone.IO.Collections Namespace