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.143 -- Release Build+37d022088aab2458baec8e7580132f50f5d9f39c
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