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.158 -- Release Build+4e142f43dbc4b789ed7256dff03daee71604570b
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