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.154 -- Release Build+690e585b1010bc9bfdc9c11ba61c54180863b212
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