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.175 -- Release Build+36b5b04f9f64c24655fcc7ae3dab027e2909bbc2
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