Gemstone PhasorProtocols Library
Show/Hide TOC

# FrequencyValueCollection(Int32) Constructor

Creates a new FrequencyValueCollection using specified lastValidIndex.

## Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.156 -- Release Build+566b4839b04c9b0049b576901a43e8cdb3b7d9ea
C#
View Source Request Example

    public FrequencyValueCollection(
    	int lastValidIndex
    )

VB
View Source Request Example

    Public Sub New (
    	lastValidIndex As Integer
    )

C++
View Source Request Example

    public:
    FrequencyValueCollection(
    	int lastValidIndex
    )

JavaScript
View Source Request Example

    Gemstone.PhasorProtocols.FrequencyValueCollection = function(lastValidIndex);

#### Parameters

lastValidIndex Int32
  Last valid index for the collection (i.e., maximum count - 1).

## 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

FrequencyValueCollection Class
FrequencyValueCollection Overload
Gemstone.PhasorProtocols Namespace