Gemstone PhasorProtocols Library
Show/Hide TOC

# ChannelDefinitionCollectionBase T(Int32, Boolean) Constructor

Creates a new ChannelDefinitionCollectionBaseT using specified lastValidIndex.

## Definition

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

    protected ChannelDefinitionCollectionBase(
    	int lastValidIndex,
    	bool fixedElementSize = true
    )

VB
View Source Request Example

    Protected Sub New (
    	lastValidIndex As Integer,
    	Optional fixedElementSize As Boolean = true
    )

C++
View Source Request Example

    protected:
    ChannelDefinitionCollectionBase(
    	int lastValidIndex,
    	bool fixedElementSize = true
    )

JavaScript
View Source Request Example

    Gemstone.PhasorProtocols.ChannelDefinitionCollectionBase = function(lastValidIndex, fixedElementSize);

#### Parameters

lastValidIndex Int32
  Last valid index for the collection (i.e., maximum count - 1).
fixedElementSize Boolean (Optional)
  Flag that indicates if collections elements have a fixed size.

## Remarks

lastValidIndex is used instead of maximum count so that maximum type values may be specified as needed. For example, if the protocol specifies a collection with a signed 16-bit maximum length you can specify MaxValue (i.e., 32,767) as the last valid index for the collection since total number of items supported would be 32,768.

## See Also

#### Reference

ChannelDefinitionCollectionBaseT Class
ChannelDefinitionCollectionBaseT Overload
Gemstone.PhasorProtocols Namespace