From bf4bd808ee258438544b95e9a7d5e0ef842a89f6 Mon Sep 17 00:00:00 2001 From: "J. Ritchie Carroll" Date: Thu, 23 Apr 2026 10:08:28 -0500 Subject: [PATCH] Added HasMeasurementID function --- src/Gemstone.Timeseries/ImmediateMeasurements.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Gemstone.Timeseries/ImmediateMeasurements.cs b/src/Gemstone.Timeseries/ImmediateMeasurements.cs index a6204f4f1..d7e43053a 100644 --- a/src/Gemstone.Timeseries/ImmediateMeasurements.cs +++ b/src/Gemstone.Timeseries/ImmediateMeasurements.cs @@ -508,6 +508,18 @@ public void ClearMeasurementCache() m_measurements.Clear(); } + /// + /// Determines whether the specified exists in the current collection of immediate measurements. + /// + /// The to locate in the collection. + /// + /// true if the specified exists in the collection; otherwise, false. + /// + public bool HasMeasurementID(MeasurementKey key) + { + return m_measurements?.ContainsKey(key) ?? false; + } + /// /// Defines tagged measurements from a data table. ///