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.163 -- Release Build+97192eed2051f39bed46b5b7b6ce36ee5f3afc99
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