Gemstone Timeseries Library
Show/Hide TOC

# MeasurementDictionary Class

Represents a measurement dictionary used with a Frame.

## Definition

Namespace: Gemstone.Timeseries
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.141 -- Release Build+bdf56a3938e56213864ec1432892d5e4deb869ac
C#
View Source Request Example

    public class MeasurementDictionary : IDictionary<MeasurementKey, IMeasurement>,
    	ICollection<KeyValuePair<MeasurementKey, IMeasurement>>, IEnumerable<KeyValuePair<MeasurementKey, IMeasurement>>,
    	IEnumerable, IReadOnlyDictionary<MeasurementKey, IMeasurement>, IReadOnlyCollection<KeyValuePair<MeasurementKey, IMeasurement>>

VB
View Source Request Example

    Public Class MeasurementDictionary
    	Implements IDictionary(Of MeasurementKey, IMeasurement),
    	ICollection(Of KeyValuePair(Of MeasurementKey, IMeasurement)), IEnumerable(Of KeyValuePair(Of MeasurementKey, IMeasurement)),
    	IEnumerable, IReadOnlyDictionary(Of MeasurementKey, IMeasurement), IReadOnlyCollection(Of KeyValuePair(Of MeasurementKey, IMeasurement))

C++
View Source Request Example

    public ref class MeasurementDictionary : IDictionary<MeasurementKey^, IMeasurement^>,
    	ICollection<KeyValuePair<MeasurementKey^, IMeasurement^>>, IEnumerable<KeyValuePair<MeasurementKey^, IMeasurement^>>,
    	IEnumerable, IReadOnlyDictionary<MeasurementKey^, IMeasurement^>, IReadOnlyCollection<KeyValuePair<MeasurementKey^, IMeasurement^>>

JavaScript
View Source Request Example

    Gemstone.Timeseries.MeasurementDictionary = function();

    Type.createClass(
    	'Gemstone.Timeseries.MeasurementDictionary',
    	null,
    	IDictionary`2,
    	ICollection`1,
    	IEnumerable`1,
    	IEnumerable,
    	IReadOnlyDictionary`2,
    	IReadOnlyCollection`1);

Inheritance
  Object MeasurementDictionary

Implements
  ICollection KeyValuePair MeasurementKey, IMeasurement, IDictionary MeasurementKey, IMeasurement, IEnumerable KeyValuePair MeasurementKey, IMeasurement, IReadOnlyCollection KeyValuePair MeasurementKey, IMeasurement, IReadOnlyDictionary MeasurementKey, IMeasurement, IEnumerable

## Constructors

MeasurementDictionary | Creates a new MeasurementDictionary.
MeasurementDictionary(IEnumerableKeyValuePairMeasurementKey, IMeasurement) | Creates a new MeasurementDictionary.
MeasurementDictionary(Int32, Int32) | Creates a new MeasurementDictionary.

## Properties

Count | Represents a generic collection of key/value pairs.
IsReadOnly | Gets a value indicating whether the ICollectionT is read-only.
Item | Represents a generic collection of key/value pairs.
Keys | Gets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
Values | Gets an ICollectionT containing the values in the IDictionaryTKey, TValue.

## Methods

Add(KeyValuePairMeasurementKey, IMeasurement) | Adds an item to the ICollectionT.
Add(MeasurementKey, IMeasurement) | Adds an element with the provided key and value to the IDictionaryTKey, TValue.
Clear | Removes all items from the ICollectionT.
Contains | Determines whether the ICollectionT contains a specific value.
ContainsKey | Represents a generic collection of key/value pairs.
CopyTo | Copies the elements of the ICollectionT to an Array, starting at a particular Array index.
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
GetEnumerator | Returns an enumerator that iterates through the collection.
GetHashCode | Serves as the default hash function. (Inherited from Object)
GetType | Gets the Type of the current instance. (Inherited from Object)
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
Remove(KeyValuePairMeasurementKey, IMeasurement) | Removes the first occurrence of a specific object from the ICollectionT.
Remove(MeasurementKey) | Removes the element with the specified key from the IDictionaryTKey, TValue.
ToString | Returns a string that represents the current object. (Inherited from Object)
TryGetValue | Represents a generic collection of key/value pairs.

## See Also

#### Reference

Gemstone.Timeseries Namespace