Gemstone PhasorProtocols Library
Show/Hide TOC

# ChannelCollectionBase T InsertItem Method

Inserts an element into the ChannelCollectionBaseT at the specified index.

## Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.178 -- Release Build+f2b94d09f81a61f5d7415b9db3fd60b6ae3f7e12
C#
View Source Request Example

    protected override void InsertItem(
    	int index,
    	T item
    )

VB
View Source Request Example

    Protected Overrides Sub InsertItem (
    	index As Integer,
    	item As T
    )

C++
View Source Request Example

    protected:
    virtual void InsertItem(
    	int index,
    	T item
    ) override

JavaScript
View Source Request Example

    function InsertItem(index, item);

#### Parameters

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

## Exceptions

OverflowException | Maximum collection item limit reached.

## See Also

#### Reference

ChannelCollectionBaseT Class
Gemstone.PhasorProtocols Namespace