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.164 -- Release Build+e526f121ce33f6a601f5d1519047de17ef46ec99
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