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.150 -- Release Build+0627019d4c17e2f915e64987b3f2371651facacb
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