Gemstone IO Library
Show/Hide TOC

# RollingWindowTInsert 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.156 -- Release Build+6a9f88f477f6aa18d5026c0c0fcc061b1aaed2d2
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

IListTInsert(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